wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Convert char to unicode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Convert char to unicode" Watch "Convert char to unicode" New topic
Author

Convert char to unicode

kavin clain
Ranch Hand

Joined: Jan 19, 2010
Posts: 68
How to convert char into unicode representation.
Suppose I provide '1' then I will get '\u0031'.
Bob Livingston
Greenhorn

Joined: Apr 06, 2010
Posts: 4
http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html
kavin clain
Ranch Hand

Joined: Jan 19, 2010
Posts: 68
Hi Bob,

Could you please provide code to get the desired results.

Thanks
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
kavin clain
Ranch Hand

Joined: Jan 19, 2010
Posts: 68
Thank you, Ireneusz.
 
GeeCON Prague 2014
 
subject: Convert char to unicode