It's not a secret anymore!*
The moose likes Beginning Java and the fly likes Write hex code 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 "Write hex code" Watch "Write hex code" New topic
Author

Write hex code

Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 125
I have some hexadecimal values with me, like

U+0103
U+0105
U+220B
U+22F4
etc.

Please tell me how can I write these characters in MS word or wordpad.
To write ASCII character, I can use say, Alt+0+97 and "a" will be written. But how to write the values of these characters using the hex code.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

This is Unicode. I've seen a page where it is written that in Word 2003, you can use Alt+X to enter them.
U+0103[ALT+X]

I don't know about other versions.


[My Blog]
All roads lead to JavaRanch
Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 125
Originally posted by Satou kurinosuke:
This is Unicode. I've seen a page where it is written that in Word 2003, you can use Alt+X to enter them.
U+0103[ALT+X]

I don't know about other versions.


Thanks for replying.
It doesn't work. If I do say, Alt+X+22F

then on pressing of F the file menu opens. I have Office XP.

Is there any other way.
[ June 27, 2007: Message edited by: Thomas Greene ]
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 557
    
    7

Works for me just the way Satou stated.

in word enter 'U+0103'then after typing the 3 hit the alt x
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Thomas, sorry for the lousy explanation. Please do as Steve as explained.
Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 125
Thank You
 
 
subject: Write hex code
 
Similar Threads
Writing Hex Values to a file
Adding Hexadecimal to byte array
Converting special characters to hex code
hexadecimal?
int to char