fix example in readme to use 'correct' bytes
This commit is contained in:
parent
183a7b1908
commit
a62715a0be
12
README.md
12
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("<EFBFBD>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱦ<EFBFBD><C8BE><EFBFBD>"));
|
||||
chA->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("檜剪 雖旎擎 寰噹等"));
|
||||
// this line should stay untouched
|
||||
DWORD dwOppList[8]; // <EFBFBD>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱦ<EFBFBD><C8BE><EFBFBD>
|
||||
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("?𦚯穇? 鴔?篣<>?? ?<3F>?楲?㫲"));
|
||||
// this line should stay untouched
|
||||
DWORD dwOppList[8]; // 이거 지금은 안쓴데
|
||||
DWORD dwOppList[8]; // ?𦚯穇? 鴔?篣<>?? ?<3F>?楲?㫲
|
||||
```
|
||||
|
||||
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]; // <EFBFBD>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱦ<EFBFBD><C8BE><EFBFBD>
|
||||
DWORD dwOppList[8]; // 檜剪 雖旎擎 寰噹等
|
||||
```
|
||||
|
||||
After running `iconv` on the script output (read as UTF-8)
|
||||
|
@ -55,7 +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]; // ?𦚯穇? 鴔?篣<>?? ?<3F>?楲?㫲
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue