콘솔과 디버그간에 출력이 다른 이유는 무엇입니까?Debug.WriteLine 및 그 문자 인코딩
byte [] data = new byte [] {0xB1, 0x00,0xA6,0x7C, 0x4e, 0xEC, 0xE7, 0xFF, 0xDD, 0xCE};
Console.WriteLine (new String(Encoding.GetEncoding("ISO-8859-1").GetChars(data)));
Console.WriteLine (Encoding.UTF8.GetString(data));
Debug.WriteLine (new String(Encoding.GetEncoding("ISO-8859-1").GetChars(data)));
Debug.WriteLine (new String(Encoding.UTF8.GetChars(data)));
"Console.WriteLine"(라틴 인코딩) 출력 -> ± | | NìçÿÝÎ
"Console.WriteLine"(UTF8) 출력 -> | N
"Debug.WriteLine"은 출력을 표시하지 않습니다.
왜 인코딩이 다른지 또는 왜 보이는 출력이 다른지 묻는 중입니까? –