0
12 바이트가 구문 분석되지 왜 마지막
// test code
void Start()
{
// bytes is get from server with NetworkStream.Read()
byte[] bytes = { 0xe9, 0xba, 0xbb, // 麻
0xe9, 0xa3, 0x8e, // 风
0xe4, 0xbe, 0x8f, // 侏
0xe5, 0x84, 0x92, // 儒
0x00, 0x00, 0x00,
0x00, 0x00, 0x31,
0x32, 0x00, 0x00,
0x00, 0x00, 0x00 };
// print: 麻风侏儒
Debug.Log(Encoding.UTF8.GetString(bytes, 0, bytes.Length));
}
, 어떻게 UTF-8 바이트 Encoding.UTF8.GetString
거래, 나는 그것이이 중국 문자 또는 그것은 구문 분석되고있는 ASCII 문자Encoding.UTF8.GetString Parse Error?
Unity3D Mono는'MyString.ToCharArray()'입니다. 감사합니다! – Maadiah