Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Coverting UTF-16BE to UTF-8?  RSS feed

 
vinod vinod
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to convert UTF-16BE to UTF-8.I have used the following code...

String ne = new String("HY├?┬╢DYLLISI├?┬�");
System.out.println(new String(ne.getBytes(), "UTF-8"));

output--
HY???DYLLISI???

All special characters are replaced by '?' marks.

Can anyone suggest me how can i convert the above characters to UTF-8.

Thanks,
vinod
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vinod vinod"

Please check your private message, for a message from JavaRanch.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!