📝 update doc about enabling 65001 code page

This commit is contained in:
ValKmjolnir 2024-05-22 20:02:37 +08:00
parent 971583b1c7
commit 6a155f56e5
2 changed files with 17 additions and 1 deletions

View File

@ -117,6 +117,14 @@ if (os.platform()=="windows") {
}
```
Or use `std.runtime.windows.set_utf8_output()`:
```javascript
use std.runtime;
runtime.windows.set_utf8_output();
```
## __Difference Between Andy's and This Interpreter__
![error](./doc/gif/error.gif)

View File

@ -103,7 +103,7 @@ Windows 平台的预览版解释器现在还没配置相关流水线,
![usage](../doc/gif/help.gif)
如果你是 `Windows` 用户且想正常输出unicode在nasal代码里写这个来开启unicode代码页:
如果你是 `Windows` 用户且想正常输出 unicode可以这样开启 unicode 代码页:
```javascript
if (os.platform()=="windows") {
@ -111,6 +111,14 @@ if (os.platform()=="windows") {
}
```
或者使用 `std.runtime.windows.set_utf8_output()`:
```javascript
use std.runtime;
runtime.windows.set_utf8_output();
```
## __与andy解释器的不同之处__
![error](../doc/gif/error.gif)