This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
jQuery in Action, 2nd edition
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