• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to read Unicode values using byte streams.  RSS feed

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I am have a file with Unicode characters. I wrote the following program

when I try to execute it and print the Unicode value (integer) it is printing 255 to the console every time. Previously i asked on a thread whether can I read using byte streams? The answer was yes.

Please help me. Thank you all in advance.
 
Kurt Van Etten
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This recent thread should help you. Especially check out the code examples near the bottom of that thread. I don't think you really want to use a byte stream directly to read in Unicode values.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kurt Van Etten wrote: I don't think you really want to use a byte stream directly to read in Unicode values.

I just wanted to check whether I can read or not. Thank you Van.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!