mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
📝 update doc about enabling 65001 code page
This commit is contained in:
@@ -103,7 +103,7 @@ Windows 平台的预览版解释器现在还没配置相关流水线,
|
||||
|
||||

|
||||
|
||||
如果你是 `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解释器的不同之处__
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user