what is it Unicode and how to use it?
(for hebrew data in sql)
1 reply to this topic
#1
Posted 26 July 2010 - 03:36 AM
|
|
|
#2
Posted 26 July 2010 - 04:22 AM
I present you the unicode table: Unicode Table
It's a notation for a lot of characters.
'A' = 0041
'B' = 0042
And every character, chinese, greek, latin, hebrew has a value in there.
How to read the table?
Let's take letter K. And you want the unicode value.
K is in row 0040 and in column 0B
To get the unicode value of K, you sum up both: 0040 + 0B = 004B
Hebrew signs start from 0580 in the table.
Now if you want to use these in c# you must use \uCODE
So if you want to display the letter K in a string:
Try "Arial Unicode MS" if you have it.
It's a notation for a lot of characters.
'A' = 0041
'B' = 0042
And every character, chinese, greek, latin, hebrew has a value in there.
How to read the table?
Let's take letter K. And you want the unicode value.
K is in row 0040 and in column 0B
To get the unicode value of K, you sum up both: 0040 + 0B = 004B
Hebrew signs start from 0580 in the table.
Now if you want to use these in c# you must use \uCODE
So if you want to display the letter K in a string:
string ok = "O\u004B, it works"; Console.Write(ok); //output: OK, it worksIf you want to display this on a label or anything you must be aware that not all fonts have a character for it and thus may display ??? instead of the correct symbol.
Try "Arial Unicode MS" if you have it.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









