Was this page helpful?

UTF-8 設定

    作業環境:Windows XP SP3

    軟體版本:

    • Eclipse v3.4.1

    說明:在 Windows 的環境下配置 Eclipse 的 UTF-8 環境

    版本更新

    • 2009.3.5 新增此頁面

    Eclipse 環境設定

    1. 選擇「Window」>「Preferences」進行設定
      eclipse-utf8-1.png
    2. 在「General」>「Workspace」裡面設定「Text file encoding」將 Default (MS950) 改成「Other:」選擇「UTF-8」之後按下「Apply」並按「OK」結束設定
      eclipse-utf8-2.png
    3. 接下來在設定「Web」裡面的「CSS Files」、「HTML Files」、「JSP Files」一樣都在「Encoding」中設定為「UTF-8」,設定完成後按下「Apply」就可以了。
      eclipse-utf8-5.png
      eclipse-utf8-6.png
      eclipse-utf8-7.png

    個別專案設定

    1. 在專案上反白按下滑鼠右鍵並選擇「Properties
      eclipse-utf8-3.png
    2. 在「Resource」裡面設定「Text file encoding」改成「Other:」並選擇「UTF-8」之後按下「Apply」並按「OK」結束設定
      eclipse-utf8-4.png

     

    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    blog comments powered by Disqus
    Powered by MindTouch Core