[精讚] [會員登入]
220

在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題

how to show correct language content of file, instead of utf-8 encoded charactors

分享此文連結 //n.sfs.tw/15993

分享連結 在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2023-10-02 16:06:29 最後編修
2022-12-02 22:18:07 By jung
 

IDEA 雖然好用,但有個無法顯示中文的問題,就算你的設定都改為UTF-8編碼,中文就是出不來

有二個地方要改

1.  在mac上的社群版,要到

Help > Edit Custom VM Options

就會開編輯器給你了,不用傻傻的到目錄下去找那個 intellij IDEA.app.vmoptions 檔案

然後加上-Dfile.encoding=UTF-8

2. 到 preferences(社群版是Settings) -> Editor -> File Encodings把所有編碼都設為UTF-8

 

3. 最重要的設定

這個 Transparent native-to-ascii conversion  功能一定要勾選

 

參考這二篇

https://blog.csdn.net/HaHa_Sir/article/details/122851700

https://stoneapp.tech/cavern/post.php?pid=792

 

END

你可能感興趣的文章

使用virtualbox每次都忘記的事情 share folder from win host to linux guest vm

在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題 how to show correct language content of file, instead of utf-8 encoded charactors

使用letsEncrypt替換docker容器內的nginx https憑證 using cerbot for nginx on oracle linux 9

unknown issue after downgrade to intellij idea community version 使用社群版遇到的奇怪問題

[NetBeans]如何從git下載專案改建為自己的專案 修改git專案

安裝netbeans9遇到的小狀況 how to show netbeans9 program onto ubuntu desktop

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

在virtualbox如何壓縮vdi檔 using commands to reduce virtualbox's vdi file space

更新程式取消google recaptcha改用輸入驗證碼 update cnclibs to 0.0.8.6

更新程式環境到wildfly18+openjdk11-phase4: 認證程式更新 認證程式更新

how to add physical disks into HP smart array through esxi interface 如何在磁碟陣列卡上加入新的硬碟-未完待續

踩雷!intellij idea 自動把context都清掉?! iml檔會控制work space context