C# Equivelant of VB.NET ChrW()

S

Shawn B.

Greetings,

What is the C# equivelant of the VB.NET CharW() function? I've seen many
replies to a similar post but I've never seen the answer that solves my
problem. I need to get the Unicode (UTF-8) character specified by the code
that I pass in. This is not in the ASCII range.


Thanks,
Shawn
 
C

Cor Ligthert

Shawn,

char a = (char)300;

// gives I (A capital I with a reversed ^ on top in code page 1252 (Latin))

I hope this helps?

Cor
 

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

Top