Code Runner 亂碼問題


  1. 安裝code runner插件

  1. 安裝完畢上方會出現執行按鈕

  2. 執行上變得非常方便跟美觀,輸出在OUTPUT端

  3. 但在中文支援部分會出現亂碼

  4. 需要針對輸出時設定為 UTF-8

  5. 增加設定值

    "code-runner.executorMap": {
             "java": "cd $dir && javac -encoding utf8 $fileName && java -Dfile.encoding=UTF-8 $fileNameWithoutExt",
             "python": "set PYTHONIOENCODING=utf8 && python -u"
     },
    
  6. 大功告成!

#code runner #visual code #Python






你可能感興趣的文章

Mysql 狀況紀錄 8/11

Mysql 狀況紀錄 8/11

[day-4]流程判斷 - if、else if、else/whimsical 流程圖 介紹

[day-4]流程判斷 - if、else if、else/whimsical 流程圖 介紹

[進階 js 10] 物件導向 & Prototype

[進階 js 10] 物件導向 & Prototype






留言討論