mirror of
https://github.com/Aexiar/c.git
synced 2024-10-22 14:05:45 +02:00
c
This commit is contained in:
parent
f7d1902595
commit
3da8ad6bfa
BIN
docs/notes/01_c-basic/01_xdx/assets/191.png
Normal file
BIN
docs/notes/01_c-basic/01_xdx/assets/191.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
BIN
docs/notes/01_c-basic/01_xdx/assets/192.png
Normal file
BIN
docs/notes/01_c-basic/01_xdx/assets/192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 KiB |
BIN
docs/notes/01_c-basic/01_xdx/assets/193.png
Normal file
BIN
docs/notes/01_c-basic/01_xdx/assets/193.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
BIN
docs/notes/01_c-basic/01_xdx/assets/194.gif
Normal file
BIN
docs/notes/01_c-basic/01_xdx/assets/194.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 393 KiB |
@ -2073,5 +2073,23 @@ cp perf /usr/bin/
|
||||
|
||||
![](./assets/190.gif)
|
||||
|
||||
## 9.5 Win 中文乱码问题
|
||||
|
||||
* 前文,我们提及到,在 Win 中,如何出现`中文乱码`问题,就需要去`语言和区别`设置系统区域的编码为 UTF-8 ;但是,这样可能会造成其它的软件出现中文乱码问题,如:Xshell 等。
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> * ① 之所以,修改系统的编码为 UTF-8 会出现问题,是因为早期的 Win 系统的中文默认编码是 GBK(目前也是,Win 并没有强制第三方软件使用 UTF-8 编码) ,而 Xshell 等也使用的这些编码,一旦我们修改为 UTF-8 之后,可能会造成这些第三方软件出现中文乱码问题(第三方软件适配问题,相信将来应该都会切换为 UTF-8 编码),体验较差!!!
|
||||
> * 在 Linux 或 MacOS 之所以不会出现中文乱码的问题,是因为这些系统默认的编码就是 UTF-8 。
|
||||
|
||||
* 其实,还有一种解决方案,如下所示:
|
||||
|
||||
![](./assets/191.png)
|
||||
|
||||
![](./assets/192.png)
|
||||
|
||||
![](./assets/193.png)
|
||||
|
||||
* 测试一下,是否配置成功:
|
||||
|
||||
![](./assets/194.gif)
|
||||
|
Loading…
Reference in New Issue
Block a user