Get character by its number

  • Thread starter Thread starter Bishoy George
  • Start date Start date
B

Bishoy George

Hi All,

When I hold right alt and write 3 numbers from the right of keyboard, I get
its character like £ from 412.

By which class in .net can I give the number and the class method give me
its corresponding character?

Thank you.
Bishoy
 
Bishoy said:
When I hold right alt and write 3 numbers from the right of keyboard, I get
its character like £ from 412.

By which class in .net can I give the number and the class method give me
its corresponding character?

Convert.ToChar(int).
 
Bishoy,
When I hold right alt and write 3 numbers from the right of keyboard, I
get its character like £ from 412.
In addition to Jon Shemitz.

Be aware that this is culture dependend.
(It is working in the so called Western Cultures, which are more than only
the English speaking cultures)

Cor
 
Bishoy George said:
When I hold right alt and write 3 numbers from the right of keyboard, I
get its character like £ from 412.

By which class in .net can I give the number and the class method give me
its corresponding character?

These numbers are Unicode Codepoints. The Unicode class (which is really
UTF-16) has a method in it to convert a codepoint to a character.
 
Back
Top