We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848f54a commit a7d2a62Copy full SHA for a7d2a62
src/terminal.js
@@ -26,12 +26,16 @@ export default class PIOTerminal {
26
}
27
28
sendText(text) {
29
- if (!this._instance || this._instance.exitStatus !== undefined) {
30
- this._instance = this.new();
+ if (!this._instance || this._instance.exitStatus !== undefined) {
+ this._instance = this.new();
31
+ // Set Codepage to UTF-8, if Windows is used
32
+ if (process.platform === "win32") {
33
+ this._instance.sendText('chcp 65001');
34
- this._instance.sendText(text);
- this._instance.show();
35
36
+ this._instance.sendText(text);
37
+ this._instance.show();
38
+}
39
40
dispose() {
41
if (this._instance) {
0 commit comments