File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes convert to utf encoded characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "convert to utf encoded characters" Watch "convert to utf encoded characters" New topic

convert to utf encoded characters

Vijay Raj
Ranch Hand

Joined: Oct 10, 2005
Posts: 110
I have a test file that has text in Hindi language. I want it to be converted to UTF encoded, that is convert all characters to \udddd format.

Will native2ascii be of any help. I tried it but to no avail. Is there any other easy way, that is w/o writing any java code.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

native2ascii should be ok if your language is supported.
Check the supported languages here : (jdk1.4.2)

PS: /uXXXX is not UTF. It's Unicode-encoded characters.
[ March 17, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: convert to utf encoded characters
It's not a secret anymore!