From 04f19900489dd8abc9da0859cedb4f1ff864704c Mon Sep 17 00:00:00 2001 From: bitcookies Date: Sat, 18 May 2024 14:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=98=20Updated=20Description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++++----- README.zh-CN.md | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a3691e4..d1ba25c 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ Example: Now you can see the newly generated file. -```shell +```console RAR registration data Github Single PC usage license @@ -286,7 +286,7 @@ Save the generated information in **ANSI encoding** as `rarreg.key`. Execute the following code in the terminal and configure two paramet -When using ANSI encoding, you can only use characters from the country or region where your operating system is located. ANSI encoding is supported from Powershell 7.4 onwards, and you will also need to [upgrade your Powershell](https://learn.microsoft.com/en-us/powershell/ scripting/install/installing-powershell-on-windows?view=powershell-7.4). +When using ANSI encoding, you can only use characters from the country or region where your operating system is located. ANSI encoding is supported from Powershell 7.4 onwards, and you will also need to [upgrade your Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4). Generate multi-language licenses in ANSI encoding. @@ -330,7 +330,7 @@ winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding utf8 rarreg.ke Why is my `rarreg.key` invalid? -### 9.1 Incorrect encoding +### 9.1 Character encoding `TEXT1` and `TEXT2` are required to fulfill [corresponding coding requirements](#4 - coding description). @@ -340,7 +340,7 @@ winrar-keygen.exe You can refer to: [Generation of "rarreg.key"](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.md#7-generation-of-rarregkey) -### 9.2 Key encoding +### 9.2 Text encoding If you use the following command: @@ -353,7 +353,11 @@ In the newer Windows 10, PowerShell will export in **UTF16-LE** format by defaul Please use the following command: ```shell -winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ASCII rarreg.key +winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ascii rarreg.key + +winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ansi rarreg.key + +winrar-keygen.exe "utf8:Github" "Github.com" | Out-File -Encoding utf8 rarreg.key ``` ## 10. Contributing diff --git a/README.zh-CN.md b/README.zh-CN.md index e6618d6..a25a294 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -129,7 +129,7 @@ C:\Users\yourname\AppData\Roaming\WinRAR\rarreg.key
点击展开 -使用 [Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) 可以帮助你隐藏 license 信息。 +使用 [secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) 可以帮助你隐藏 license 信息。 ### 7.1 Fork @@ -261,7 +261,7 @@ Example: 现在你可以看到新生成的文件: -```shell +```console RAR registration data Github Single PC usage license @@ -323,7 +323,7 @@ winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding utf8 rarreg.ke 为什么我生成的 `rarreg.key` 是无效的? -### 9.1 编码不正确 +### 9.1 字符编码不正确 参数 `TEXT1` 和 `TEXT2` 需要满足[对应的编码要求](#4-编码说明): @@ -333,7 +333,7 @@ winrar-keygen.exe 具体可参考原理文档:[授权文件"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) -### 9.2 文件储存编码 +### 9.2 文本储存编码不正确 如果你使用了如下命令: @@ -346,7 +346,11 @@ winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key 请指定输出编码格式,例如: ```shell -winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ASCII rarreg.key +winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ascii rarreg.key + +winrar-keygen.exe "Github" "Github.com" | Out-File -Encoding ansi rarreg.key + +winrar-keygen.exe "utf8:Github" "Github.com" | Out-File -Encoding utf8 rarreg.key ``` ### 9.3 关于简体中文版