📝 update doc about enabling 65001 code page
This commit is contained in:
parent
971583b1c7
commit
6a155f56e5
|
@ -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__
|
||||||
|
|
||||||

|

|
||||||
|
|
|
@ -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解释器的不同之处__
|
||||||
|
|
||||||

|

|
||||||
|
|
Loading…
Reference in New Issue