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!

String encoding

807569Jul 27 2006 — edited Jul 27 2006
Hi, I have read String, that is in UTF-8 code - single byte per char. There are some special national characters for codepage 1250. I need convert it into unicode.
I come upon a one solution:

BufferedReader reader = new BufferedReader(new InputStreamReader(new StringBufferInputStream(title), "windows-1250"));
System.out.println("buff reader: " + reader.readLine());

but StringBufferInputStream is deprecated. exists any smart solution
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 24 2006
Added on Jul 27 2006
5 comments
127 views