📃 Update README

Update README about ANSI Encoded
This commit is contained in:
BitCookies 2021-11-28 09:59:31 +08:00 committed by bitcookies
parent 18f899ed18
commit 8e95f2eecb
7 changed files with 16 additions and 7 deletions

View file

@ -5,6 +5,11 @@
"ProjectGuid": "2443aa55-9534-4451-9bcc-48ac0982a0cc",
"DisplayName": "winrar-keygen",
"ColorIndex": 0
},
"a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": {
"ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3",
"DisplayName": "杂项文件",
"ColorIndex": -1
}
},
"NextColorIndex": 1

Binary file not shown.

Binary file not shown.

View file

@ -114,9 +114,9 @@ Save the generated information as `rarreg.key`.
Why is my `rarreg.key` invalid?
### 5.1 Contains non-English characters
### 5.1 ANSI Encoded
If `text1` and `text2` contain **non-English characters**, although a key can be generated, the key is invalid.
Username and License type are **ANSI-encoded string, without null-terminator.**
```console
winrar-keygen.exe <text1> <text2>
@ -124,9 +124,11 @@ winrar-keygen.exe <text1> <text2>
### 5.2 Terminal Encode
There may be a terminal encoding problem, you can use `chcp` to switch temporarily.
[Issues #5](https://github.com/bitcookies/winrar-keygen/issues/5) Be sure to use ANSI encoding, without null-terminator.
You can refer to the Microsoft documentation: [chcp | Microsoft Docs](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chcp)
You can refer to the Microsoft documentation: [Generation of "rarreg.key"](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.md#7-generation-of-rarregkey)
Thanks [@Sonic-The-Hedgehog-LNK1123](https://github.com/Sonic-The-Hedgehog-LNK1123).
## 6. Encounter problems?

View file

@ -111,7 +111,7 @@ de3cdc56b311475b484e80b48157a0c3af60ca4f7f9c75d49bc50d
### 5.1 包含非英文字符
如果 `text1``text2` 参数包含**非英文字符**,即使 WinRAR Keygen 能够生成 `rarreg.key`,但是是无效的。
用户名参数以及生成的许可文本,均是 **不含空格的 ANSI 编码。**
```console
winrar-keygen.exe <text1> <text2>
@ -119,9 +119,11 @@ winrar-keygen.exe <text1> <text2>
### 5.2 终端编码的问题
[Issues #5](https://github.com/bitcookies/winrar-keygen/issues/5) 有可能是终端编码的问题,你可以使用 `chcp` 命令暂时切换。
[Issues #5](https://github.com/bitcookies/winrar-keygen/issues/5) 请务必使用 ANSI 编码(不包含空格):
具体可参考 Microsoft 文档:[chcp | Microsoft Docs](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chcp)
具体可参考原理文档:[授权文件"rarreg.key"的生成](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.zh-CN.md#7-%E6%8E%88%E6%9D%83%E6%96%87%E4%BB%B6rarregkey%E7%9A%84%E7%94%9F%E6%88%90)
感谢 [@Sonic-The-Hedgehog-LNK1123](https://github.com/Sonic-The-Hedgehog-LNK1123).
## 6. 遇到问题