T tascien Jul 7, 2005 #1 Can anyone show me a simple example on how to: - Encode - Decode text to and from utf-8 format... Thanks...
Can anyone show me a simple example on how to: - Encode - Decode text to and from utf-8 format... Thanks...
C Cor Ligthert [MVP] Jul 7, 2005 #2 Tascien, You mean what is on this page? http://msdn.microsoft.com/library/d...tml/frlrfsystemtextutf8encodingclasstopic.asp I hope this helps, Cor
Tascien, You mean what is on this page? http://msdn.microsoft.com/library/d...tml/frlrfsystemtextutf8encodingclasstopic.asp I hope this helps, Cor
J Jon Skeet [C# MVP] Jul 7, 2005 #3 tascien said: Can anyone show me a simple example on how to: - Encode - Decode text to and from utf-8 format... Click to expand... Use Encoding.UTF8.GetBytes and Encoding.UTF8.GetString. See http://www.pobox.com/~skeet/csharp/unicode.html for more information.
tascien said: Can anyone show me a simple example on how to: - Encode - Decode text to and from utf-8 format... Click to expand... Use Encoding.UTF8.GetBytes and Encoding.UTF8.GetString. See http://www.pobox.com/~skeet/csharp/unicode.html for more information.
T tascien Jul 11, 2005 #4 I think that is what i was looking for. Is it possible to use any encoding? ie. BG5 or simplified chinese, 'chenese'? Thanks.
I think that is what i was looking for. Is it possible to use any encoding? ie. BG5 or simplified chinese, 'chenese'? Thanks.
J Jon Skeet [C# MVP] Jul 11, 2005 #5 tascien said: I think that is what i was looking for. Is it possible to use any encoding? ie. BG5 or simplified chinese, 'chenese'? Click to expand... Yup - you need to either know the name of the encoding, or the code page for it. You can then use Encoding.GetEncoding to get you the right encoding.
tascien said: I think that is what i was looking for. Is it possible to use any encoding? ie. BG5 or simplified chinese, 'chenese'? Click to expand... Yup - you need to either know the name of the encoding, or the code page for it. You can then use Encoding.GetEncoding to get you the right encoding.