Skip to content

Commit

Permalink
Fix console output when using Japanese (proposal by @NextWorldLab)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphwetzel committed Sep 26, 2023
1 parent 632ace5 commit 7b398aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mcu_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,9 @@ module.exports = function(RED) {
case "de-DE": // this is 'de' on masOS
runner_options['encoding'] = "latin1";
break;
case "ja-JP":
bcmds.unshift(`chcp 437`);
break;
default:
runner_options['encoding'] = "utf8";
}
Expand Down

0 comments on commit 7b398aa

Please sign in to comment.