A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Java in General
how to know the unicode coding for a specific char
clojure forum advocate
Joined: Nov 08, 2003
Jul 04, 2004 18:00:00
how can I get the unicode coding for a specific char.
something like (for example):
A = \u2302
c = \u233a
is there an algorithm to apply here ?
Joined: Jul 02, 2004
Jul 04, 2004 23:10:00
The unicode is in hex, so you just need to convert your char to hex, then write out "\u####". You could do this:
(this might actually require some padding 0's on the left, but you get the idea).
Joined: Apr 14, 2004
Jul 05, 2004 04:29:00
Windows only: run the "charmap" utility.
(BTW: what are you trying to achieve here - code point values don't change so isn't this a little unecessary? Sorry if that sounds like a criticism - I'm just curious)
[ July 05, 2004: Message edited by: Paul Sturrock ]
Joined: Jan 30, 2000
Jul 05, 2004 13:55:00
You may also find useful info at
"I'm not back." - Bill Harding,
I agree. Here's the link:
- it saves me about five hours per week
subject: how to know the unicode coding for a specific char
system dependent representation of chars
how to use unicode char?
Convert char to unicode
java coding and unicode
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013