Unicode values like OD
HI,
I facing some problem while iam working on unicode system.
Problem is some hing like this,In my report there is some declaration, type x with values like
09 and 0D.
please help me out.
thanks.
jannat
Hi,
CONSTANTS:
con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
Check this links:Unicode error
http://www.sapdevelopment.co.uk/upgrade/uccheck_errors.htm
Regards
Adil
Similar Messages
-
Problem with getting unicode values from console
Hi,
In my application I am passing unicode value like \u00DF from console. and writing this string value to a utf8 file. But in the file the value is printed not the actual unicode character.
Where the things are getting wrong.
I have declared a string in java like ;
String abc = "\u00DF";
and printed this to a utf8 file, it works fine and the corresponding unicode character for \u00DF is printed.
Why the unicode value passes from console is not working property. How can i resolve this ?
Thanks in advance...
<!--Session data-->And how are you putting it into the console in the first place?
-
How to display unicode values in file to corresponding characters
Hello Java-ians !
Could you please calrify my doubt ! I am able to generate unicode values for arbic, russian characters. I did it by generating a UTF-8 format file and I used native2ascii tool to generate unicode values. No I am unable to dispaly the characters. I read the file using FileReader and used JTextFiled.setText method to redisplay the characters. Instead of displaying the corresponding character, I am getting only unicode values. Why it's happening ?
Also could you plese tell me how ResourceBundle works ? It reads the unicode values and displays proper charcters, how ?
Please help me ! I need it desperately !
Martin Sunder Singh D.S.you have to do like this:
FileInputStream fos = new FileInputStream(new File("japanies.out"));
BufferedReader bw = new BufferedReader(new InputStreamReader(fos,"UTF8"));
System.out.println(bw.readLine());
bw.close(); -
Hi All,
I have a SP2013 environment which authenticate users using ADFS 2.0 via Windows AD. We have two separate clients, Portal and Mobile. Portal users Passive Federation where as Mobile client uses Active Authentication with usernamemixed endpoint in ADFS.
I have an AD property which stores Unicode characters. In Active Authentication via Mobile, for a user who has a Unicode value in the AD property, I can get the SAML token successfully from ADFS.
Ex : <saml:AttributeValue>español</saml:AttributeValue>
However, when I post this SAML token to SharePoint _trust endpoint, I'm getting an error "500 Internal Server error". However for the same user, if I change the AD property value from "español" to "English" then I can get the FedAuth
cookie successfully from the _trust endpoint.
Also, for the same user, If I logged in via Portal which uses Passive Federation, then it's working fine.
Really appreciate your thoughts on this.
SupunHi Supun,
As you mentioned, the issue only happens in Active authentication. Would you please let me know which mobile client your users are using for the Active authentication, is it a custom one? Please be noted if you use a mobile browser, the authentication will
also be Passive.
In Passive mode authentication, STS also uses POST to pass the security token to the relaying party. I'd like to know what kind of tool you are using to post a SAML token to SharePoint endpoint as impersonation of an Active authentication. Since the Active
authentication flow is quite complex, I also suggest you to check the event log in your ADFS server, and try to find more information about the issue.
Thanks,
Reken Liu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Unicode value of a non-ASCII character
Hi,
Suppose, the unicode value of the character ् is '\u094d'.
Is there any Java function which can get this unicode value of a non-ASCII character.
Like:
char c='्';
String s=convertToUnicode(c);
System.out.println("The unicode value is "+ s);
Output:
The unicode value is \u094d
Thanks in advanceRanjan_Yengkhom wrote:
I have tried with the parameter
c:\ javac -encoding utf8 filename.java
Still I am getting the same print i.e. \u3fIf it comes out as "\u3f" (instead of failing to compile or any other value), then your source code already contains the question mark. So you already saved it wrong and have to re-type it (at least the single character).
>
Then I studied one tutorial regarding this issue
http://vietunicode.sourceforge.net/howto/java/encoding.html
It says that we need to save the java file in UTF-8 format. I have explored most of the editors like netbean, eclipse, JCreator, etc... there is no option to save the java file in UTF-8 format.That's one way. But since that is so problematic (you'll have to remember/make sure to always save it that way and to compile it using the correct switch), the better solution by far is not to use any non-ASCII characters in your source code.
I already told you two possible ways to achieve that: unicode escapes or externalized strings.
Also read http://www.joelonsoftware.com/articles/Unicode.html (just because it's related, essential information and I just posted that link somewhere else). -
Is there a reliable way to determine the Unicode value of any character? For example, the following codeString string = "Việt";
for (int i = 0; i < string.length(); ++i)
char c = string.charAt(i);
System.out.println(c + " = " + Character.getNumericValue(c));
}Gives this output:
V = 31
i = 18
? = -1
t = 29
Not too helpful, since the one character I really care about is shown as -1.Well, I'm still somewhat confused (and, in my
corporate environment here, am limited to J2SE 1.4).
Why would a character not have a numeric
value? In other words, under what circumstances is
the -1 returned?I think you're misconstruing the meaning of "numeric value" as it's intended here. Numeric value just means that "3" has a numeric value of 3, "7" -> 7, and so on. It doesn't mean that characters like '%', '(', etc. have a numeric value. From the API:
Returns the int value that the specified Unicode character represents. For example, the character '\u216C' (the roman numeral fifty) will return an int with a value of 50.
The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowercase ('\u0061' through '\u007A'), and full width variant ('\uFF21' through '\uFF3A' and '\uFF41' through '\uFF5A') forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.
If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned.
To get the Unicode value of a char, just cast to an int as previously shown by DrClap (and myself, though less clearly so).
~ -
SQL Query returns values like "---" and "NA"
Hi
When I execute a sql query in MII it returns values like "---" and "NA" for empty Char and numeric fields respectively.
I have checked the database and made sure that these fields does not have any value. This happens only when I run the query through MII. Can any one know how can we get rid of these values?
Thanks in advance
ShajiShaji,
MII sets those values as a default if it discovers null values in a query result. You can change this default behaviour in several ways.
First, have a look at the document [Setting custom null values in XML|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70628af0-8ec4-2c10-7da2-f451e412dd8f?quicklink=index&overridelayout=true]. Then you may also use SQL functions like [NVL|http://www.techonthenet.com/oracle/functions/nvl.php] to change the value directly in the SQL query. You can also change the value inside the MII BLT to whatever you need.
Michael -
In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp
Dear Friends,
TagLib how can I get the Attribute value (like JavaBean) in jsp .
I do this thing.
public void setPageContext(PageContext p) {
pc = p;
pc.setAttribute("id", new String("1") );
pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
pc.setAttribute("last_name", new String("singh"));
but in Jsp
<td>
<%=pageContext.getAttribute("first_name"); %>
cause null is returing.
Pls HELP me
with regards
Siddharth SinghFirst, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
public class MyTag extends SimpleTagSupport
public void doTag()
PageContext pc = (PageContext)getJspContext();
pc.setAttribute("first_name", "Siddharth");
pc.setAttribute("last_name", "Singh");
pc.setAttribute("id", "1");
}Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
public class MyTag extends TagSupport
public void doStartTag()
pageContext.setAttribute("first_name", "Siddharth");
pageContext.setAttribute("last_name", "Singh");
pageContext.setAttribute("id", "1");
}In each case, this sort of thing should work:
<mytags:MyTag />
<%= pageContext.getAttribute("first_name") %>I -
How to enter values like SYSDATE in the Data Grid Editor
I would need to insert sysdate in a field via the Data editor.
When I do this, it replaces it by to_Date('sysdate', blabla...)
Is there a way to tell sqldeveloper sysdate is a key value (like :sysdate in forms) ?
Regards
GillesSorry, I did not understand.
I just have a DATE field, which I want to update with the current date (sysdate).
How do I do that with sql developer and the data editor ? -
If some ABAP expert here give a sample code on how to convert a date type of BUDAT value (like 01/01/2006) to a YYYYMM (200601) NUMC 6 value, that would be great <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 12:14 PMHere ya go ....
report sdn.
data: l_tdat6(08) type c.
call function 'DATUMSAUFBEREITUNG'
exporting
idate = sy-datum
importing
tdat6 = l_tdat6
exceptions
datfm_ungueltig = 1
datum_ungueltig = 2
others = 3.
if sy-subrc <> 0.
break-point.
endif."subrc
break-point. -
Hi
I have a form item (SPEND) of select list having values like
$0 - $10k
$10k - $50k
$50k - $100k
$100k - $250k
$250k+
For the new record, when I hit "SAVE” buttons it inserts the new records to the table with values ($0-$10k...)
BUT when i edited the same record, and then try to "Apply Changes” getting following error message
ORA-01465: invalid hex number
Again when I change the value to null it simply allows the record to UPDATE.
Again I changed the item to a text field i am getting same error when I try with charter (ABc...). BUT it allows to the number (123..)
Column attribute is SPEND VARCHAR2 (15 BYTE)
ie - when I try to update the SPEND field with the values ($0 - $10k,$10k - $50k,$50k - $100k,$100k - $250k,$250k+) I am getting above error message.
ORA-01465: invalid hex number
Environment:
Oracle Apex- 4.1
DB-11g
Thanks,
Amu
Edited by: Amuly on Jul 16, 2012 5:00 PMUse utl_raw.cast_to_raw() function when you convert HEX value into RAW(), e.g.:
SQL> create table ztest (ff raw(1000));
Table created
SQL> insert into ztest (ff) values
2 (utl_raw.cast_to_raw('596F75207765726520646973636F6E6E65637465642066 726 F 6D207468652041494D207365727669996365207768656E20796F752073696
3 76E656420696E2066726F6D20616E6F74686572206C6F636174'));
1 row inserted -
What is the procedure to convert a character literal into its corresponding unicode value?
eg.'A' is equivalent to '\u0041'Ok, before you post even more questions without doing any research, I'll give you the big list:
The One to Torment Newbiess with
[Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
[Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
jGuru
A general Java resource site. Includes FAQs, forums, courses, more.
JavaRanch
To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
[Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
[The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
[http://javaalmanac.com|http://javaalmanac.com]
Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
Gosling is the creator of Java. It doesn't get much more authoritative than this.
Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/] -
hi friends
i want to find out unicode values of all characters present
in a string. has somebody witten any code for this?
the string is in japanese characters.
thanks for ur help (in advance)This is extremely un-advanced. Just get a character
from the string and cast it to an int. That's the
Unicode value.What do you mean by un-advanced? Shouldn't you know what you get and what you cast into? -
Hi,
I have an XML file that contains an invisible, which when imported to Indesign CS turns into a Soft Return.
How can I determine the Unicode value of that character in the XML file?
Problem being, if I create a new XML file and use "\n" as my Soft Return character it becomes a Hard Return when imported.
Bye
SteveHEasiest way would be to load the file into a hex editor, I think.
-
Parsing strings with Unicode values 16 bits
How can I get the Unicode value for a character in a String when the value is greater than 16 bits?
I need to extract a supplemental plane Unicode value from a string. However, String.charCodeAt(index) truncates the Unicode value to 16 bits, returning what should be 0x02F91A as 0xF91A. I see discussions that show that earlier versions of Flex stores such char codes as the two code points of a surrogate pair, but in Flex 4, the string length is just 1 when I put only this character in the string.Does it work in JavaScript? Could send it over via externalInterface.
Maybe you are looking for
-
all data and messaging works on my note 4, but last night the cellular phone service just went dead. I can call people but the line is just silent, and people can call me, it rings, but I can't hear them. ????? What is wrong with it???? How do I f
-
Pentax K-7 support in Lightroom 2.4 not quite complete?
Hi, I have my K-7, and Lightroom 2.4 installed. Lightroom reads K-7 pefs and dngs, but doesn't seem to do anything with the lens aberration info included in the pef files when that feature is enabled. Am I correct, and if so, is this just temporary,
-
I lost my menu bar- how do I get it back?
I clicked on something, I suppose!, and don't have a menu bar anymore.
-
Changing database credentials of action block SQL Query
Hi, I have created a SQL Query with command mode for inserting data in database. But I would like to change the database credentials of this SQL Query dynamically. How can I do this? I have seen one property of this action block as Connector.
-
DSC 8.6.1 run-time and LV2009 executable are they working together ?
Hi All, In my application I first deploy shared variables and when they all have depleoyed the main application starts. My deployment procedure is something like that: 0. Select first library 1. check if library is already running on SVE 2. if not