two byte character or one byte character
Posted
by RBrattas
on Stack Overflow
See other posts from Stack Overflow
or by RBrattas
Published on 2010-04-02T16:51:10Z
Indexed on
2010/04/02
16:53 UTC
Read the original article
Hit count: 523
character-encoding
Hi,
How can I see if the input string is a two byte character or one byte character; and from which encoding system the character is coming from?
I am using C# and SilverLight; I assume I could find the encoding the computer is running and then the character? Any code snippet?
Thank you, Rune
// Get a UTF-32 encoding by codepage.Encoding Encoding_12000_instance = Encoding.GetEncoding(12000);
// Get a UTF-32 encoding by name.Encoding Encoding_UTF32_instance = Encoding.GetEncoding("utf-32");
© Stack Overflow or respective owner