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
 
Hi George,

Use Convert.ToChar(int) and if your using VB 6 or so Chr(byte)
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top