• 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!