Jump to content

Unicode

- - - - -

  • Please log in to reply
1 reply to this topic

#1
naomi

naomi

    Newbie

  • Members
  • Pip
  • 5 posts
what is it Unicode and how to use it?
(for hebrew data in sql)

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
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:
string ok = "O\u004B, it works";
Console.Write(ok);

//output: OK, it works
If 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