By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,442 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

How to read russian characters properly

P: 18
Hi All

I am trying to read russian characters from xml,while doing so,i have taken care of UTF-8,but still few letters come in form of question marks and square blocks.

Please can anyone help me out with this....

Thanks..
Nov 26 '07 #1
Share this Question
Share on Google+
7 Replies


Expert 10K+
P: 11,448
Hi All

I am trying to read russian characters from xml,while doing so,i have taken care of UTF-8,but still few letters come in form of question marks and square blocks.

Please can anyone help me out with this....

Thanks..
Probably it's a font issue; try to change the font to "Arial MS Unicode" and see
if it helps (assuming you have that font available).

kind regards,

Jos
Nov 26 '07 #2

P: 18
Probably it's a font issue; try to change the font to "Arial MS Unicode" and see
if it helps (assuming you have that font available).

kind regards,

Jos
hi..
sorry it didnt work..
few letters are proper while rest are junk.
Nov 26 '07 #3

Expert 10K+
P: 11,448
hi..
sorry it didnt work..
few letters are proper while rest are junk.
For the characters that come out as 'junk' print the character's codepoint, i.e.
convert the char to an int and print that; do the codepoint makes sense? If not,
you still have your conversion problem, if they do, it's a font issue.

kind regards,

Jos
Nov 26 '07 #4

P: 18
For the characters that come out as 'junk' print the character's codepoint, i.e.
convert the char to an int and print that; do the codepoint makes sense? If not,
you still have your conversion problem, if they do, it's a font issue.

kind regards,

Jos
what is the solution for "FONT " issue????
Dec 3 '07 #5

Expert 10K+
P: 11,448
what is the solution for "FONT " issue????
Did you read my previous reply? Either it's a font issue or it isn't. The Arial MS Unicode
font can display Russian (Cyrillic) characters. You wrote that they still show as junk
characters so (probably) it isn't a font problem; it couls be a conversion problem. That's
why I suggested to print out the code point values of the characters and check whether
or not they show up correctly. Also see the charts from the Unicode Table for the
correct code point values. It's your software so you have to fix it.

kind regards,

Jos
Dec 3 '07 #6

P: 18
Did you read my previous reply? Either it's a font issue or it isn't. The Arial MS Unicode
font can display Russian (Cyrillic) characters. You wrote that they still show as junk
characters so (probably) it isn't a font problem; it couls be a conversion problem. That's
why I suggested to print out the code point values of the characters and check whether
or not they show up correctly. Also see the charts from the Unicode Table for the
correct code point values. It's your software so you have to fix it.

kind regards,

Jos
i have checked ur reply.....and i hav chkd the codept..it's fine..

see this is the following code for conversion is any change required??
dicValue="russian/chinese characters"
new String(dicValue.getBytes(),"UTF-8");
Dec 3 '07 #7

Expert 10K+
P: 11,448
i have checked ur reply.....and i hav chkd the codept..it's fine..

see this is the following code for conversion is any change required??
dicValue="russian/chinese characters"
new String(dicValue.getBytes(),"UTF-8");
Have you checked if your system's default *encoding* is UTF-8? Check out
the overloaded 'getBytes()' methods in the String class.

kind regards,

Jos
Dec 3 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.