Monday, March 16, 2015

.Default and .UTF8 are options off of System.Text.Encoding in C#.

The second will allow one to encode and decode special characters such as Chinese characters. I experimented with this today. I went to Google Translate and typed in "Hello World" and got the Chinese characters for "Hello World" and experimented with encoding and decoding them. With the default setting the characters just come back out of encoding as question marks.

No comments:

Post a Comment