From 9beed348d222f63af29c2986bd4d7f6e67a8dc1c Mon Sep 17 00:00:00 2001 From: Tr0n Date: Sat, 6 Apr 2024 00:40:36 +0200 Subject: [PATCH] and now we fix the utf8 characters again --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 886dd40..70f118e 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,18 @@ Original File Content (read as UTF-8) ```cpp // this string literal should be converted -chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("̰ Ⱦ")); +chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("�̰� ������ �Ⱦ���")); // this line should stay untouched -DWORD dwOppList[8]; // ̰ Ⱦ +DWORD dwOppList[8]; // �̰� ������ �Ⱦ��� ``` Original File Content (read as EUC-KR and converted to UTF-8) ```cpp // this string literal should be converted -chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("?? ?금?? ???")); +chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이거 지금은 안쓴데")); // this line should stay untouched -DWORD dwOppList[8]; // ?? ?금?? ??? +DWORD dwOppList[8]; // 이거 지금은 안쓴데 ``` After running this script (read as UTF-8) @@ -46,7 +46,7 @@ After running this script (read as UTF-8) // this string literal should be converted chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("\xC0\xCC\xB0\xC5 \xC1\xF6\xB1\xDD\xC0\xBA \xBE\xC8\xBE\xB4\xB5\xA5")); // this line should stay untouched -DWORD dwOppList[8]; // ̰ Ⱦ +DWORD dwOppList[8]; // �̰� ������ �Ⱦ��� ``` After running `iconv` on the script output (read as UTF-8) @@ -55,8 +55,7 @@ After running `iconv` on the script output (read as UTF-8) // this string literal should be converted chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("\xC0\xCC\xB0\xC5 \xC1\xF6\xB1\xDD\xC0\xBA \xBE\xC8\xBE\xB4\xB5\xA5")); // this line should stay untouched -DWORD dwOppList[8]; // ?? ?금?? ??? - +DWORD dwOppList[8]; // 이거 지금은 안쓴데 ``` ## Usage