|
Author |
Topic: unicode-charts? (Read 420 times) |
|
der_rabe
|
unicode-charts?
« on: Mar 14th, 2004, 2:20pm » |
|
i am a bit confused about unicode. maybe you can help me out. processing uses the unicode-charts. when i look into the charts on www.unicode.org i find the value 41 for a big A, but in processing the A has the value 65. Maybe i just looked into the wrong table. Maybe you can tell me where i can find a correct table, which i can use for my processing-typo stuff? thanks a lot Bernd
|
Bernd Salewski student of digital media Hochschule Bremen
|
|
|
mKoser
|
Re: unicode-charts?
« Reply #1 on: Mar 14th, 2004, 2:27pm » |
|
i usually refer to the ascii-table. I've recently done a project with strings being sent by serial (as their ascii values) where i used this. 'A' here is the same as 65. + mikkel
|
« Last Edit: Mar 14th, 2004, 2:28pm by mKoser » |
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
arielm
|
Re: unicode-charts?
« Reply #2 on: Mar 14th, 2004, 2:49pm » |
|
on Mar 14th, 2004, 2:20pm, der_rabe wrote:i find the value 41 for a big A, but in processing the A has the value 65 |
| both "versions" are right: 41 (4 times 16 plus 1) is the hexadecimal value for 65 (6 times 10 plus 5)!
|
« Last Edit: Mar 14th, 2004, 2:50pm by arielm » |
|
Ariel Malka | www.chronotext.org
|
|
|
fry
|
Re: unicode-charts?
« Reply #3 on: Mar 14th, 2004, 9:47pm » |
|
the unicode value for everything under 128 will be identical to the ascii values. it's for values 128 and higher (those not part of ascii) where the unicode encoding plays a role. you can also get values by doing like so: int val = 'A'; println(val); // this should print 65 or if you want to go from hex: char c = 0x41; // 0x in front means "this is hex" println(c); // this will print A
|
|
|
|
der_rabe
|
Re: unicode-charts?
« Reply #4 on: Mar 15th, 2004, 12:29am » |
|
thanks a lot. yes, i did look into my java-book (quite useful sometimes) and found the passage of the equality of ascii and unicode within the first 128 chars. now i am a bit less dumb.
|
Bernd Salewski student of digital media Hochschule Bremen
|
|
|
|