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 Android Security Essentials Live Lessons this week in the Android 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: 14687

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
Consider Paul's rocket mass heater.
subject: convert to utf encoded characters
Similar Threads
Question on Characetr Encoding to UTF-8
Handling Chinese characters while retriving fromDB using JDBC
Save File As UTF-8
setting utf-8 in jsp
Escaping Multilingual strings/UTF-8