Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with display of a character (value 65533)

807589Oct 9 2008 — edited Oct 9 2008
Hi all, sorry for my english but i don't speak it very well.

I have a big problem with the visualization of a character.

I have a binary text that i have to analyze with java. With my utility all works fine, but when i get the character (binary 81) and i analayze this character i obtain an int 65533 or a byte -3 , and after a casting to char i see that java doesn't display correctly this char, infact i obtain a char like this a question mark in a square. Even if a try to write this into a text file, i can see correctly all the other char, but instead of this char i see a question mark.

Someone know why i obtain this?i have to set some specific character encoding or something like this?

I don't know if this is usefull, but these are Hebrew char.

Thanks,bye.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2008
Added on Oct 9 2008
2 comments
2,137 views