본문 바로가기
IT개발/c#

[c#] string 데이터를 utf-8 로 인코딩 하여 담아보자 (string to utf-8, encoding)

by dootiger 2014. 4. 25.
반응형

As you know the string is coming in as Encoding.Default you could simply use:

 

 

 

byte[] bytes = Encoding.Default.GetBytes(myString);

myString = Encoding.UTF8.GetString(bytes);





반응형