mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-27 13:28:45 +08:00
📝 update doc about enabling 65001 code page
This commit is contained in:
@@ -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__
|
## __Difference Between Andy's and This Interpreter__
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
+9
-1
@@ -103,7 +103,7 @@ Windows 平台的预览版解释器现在还没配置相关流水线,
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
如果你是 `Windows` 用户且想正常输出unicode,在nasal代码里写这个来开启unicode代码页:
|
如果你是 `Windows` 用户且想正常输出 unicode,可以这样开启 unicode 代码页:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
if (os.platform()=="windows") {
|
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解释器的不同之处__
|
## __与andy解释器的不同之处__
|
||||||
|
|
||||||

|

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