첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
string source = "Räksmörgås";

Encoding sourceEncoding = Encoding.UTF8;
Encoding targetEncoding = Encoding.GetEncoding(Encoding.ASCII.EncodingName, new EncoderReplacementFallback(string.Empty), new DecoderExceptionFallback());

byte[] targetArray = Encoding.Convert(sourceEncoding, targetEncoding, Encoding.UTF8.GetBytes(source));

string target = Encoding.ASCII.GetString(targetArray);

Console.WriteLine(target);
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요