Unicode - ansi character conversion

Unicode - ansi character conversion

Post by TmFkYX » Fri, 31 Dec 2004 22:07:04


Hi,

How can I convert a Unicode string to an ansi string and vise-versa ( using
C# )
--
Nadav
http://www.yqcomputer.com/
 
 
 

Unicode - ansi character conversion

Post by Cor Ligthe » Fri, 31 Dec 2004 22:28:13

Nadav,

Do you know this page?
http://www.yqcomputer.com/

Know that ASCII is 7 bits maybe you mean this.

System.Text.Encoding.GetEncoding(437)
(When that code page is used on your system)

I hope this helps?

Cor

"Nadav" < XXXX@XXXXX.COM >

 
 
 

Unicode - ansi character conversion

Post by Joerg Joos » Fri, 31 Dec 2004 23:08:59


You can only convert between byte representations (using
System.Text.Encoding). .NET strings are always Unicode strings.

Cheers,

--
Joerg Jooss
www.joergjooss.de
XXXX@XXXXX.COM