• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Kin

            Kin

             

            svn list 顯示中文亂碼問題的解決方法 [轉載]

            svn list 顯示中文亂碼問題的解決方法 [原創 2007-11-07 21:15:26]   
            我頂 字號:

            很久沒用svn命令,忽然發現:

            C:\Documents and Settings\Administrator>svn list --non-interactive "file:///D:/u
            sr/svn/repositories/demo/"
            dir 2/
            dir1/
            ?\230?\150?\176?\229?\187?\186?\230?\150?\135?\228?\187?\182?\229?\164?\185/
            ?\230?\150?\176?\229?\187?\186?\230?\150?\135?\228?\187?\182?\229?\164?\185 (2)/


            C:\Documents and Settings\Administrator>

            返回的內容竟然是亂碼,正確的應該是:

            dir 2/
            dir1/
            新建文件夾
            新建文件夾 (2)

            安裝最新版本的svn: 1.4.5 ,重啟Windows,問題還是存在。

            在網上找了很久,最后,在http://www.etng.net/blog/2006/09/26/subversion-14%e7%89%88%e6%9c%ac%e7%9a%84windows%e6%9c%8d%e5%8a%a1%e9%85%8d%e7%bd%ae%e6%96%b9%e6%b3%95/  找到了解決方法,文章說,設置Windows系統環境變量:

            LANG=zh_CN.UTF8
            APR_ICONV_PATH=C:\Program Files\Subversion\iconv
            SVN_EDITOR=notepad.exe

            就可以解決。設置方法:對“我的電腦”按右鍵,選擇“屬性”,選擇“高級”欄,單擊“環境變量”,檢查“系統變量”列表是否有上述3個參數,如果有則進行修改,如果沒有,則進行添加;修改完后,按多次“確定”。 此時,系統環境變量已經生效,再打開命令提示符,執行命令:

            Microsoft Windows XP [版本 5.1.2600]
            (C) 版權所有 1985-2001 Microsoft Corp.

            C:\Documents and Settings\Administrator>"C:\Program Files\Subversion\bin\svn.exe
            " list file:///D:/usr/svn/repositories/demo
            dir 2/
            dir1/
            新建文件夾/
            新建文件夾 (2)/

            C:\Documents and Settings\Administrator>

            中文顯示正常了。

            至于是否可以設置 LANG=zh_CN.GBK   或者 zh_CN.GB2312 或者 zh_CN.GB13000 等,我嘗試了各種取值,似乎不影響svn的輸出結果。

            APR_ICONV_PATH的設置應該是關鍵所在,因為iconv目錄保存了各種編碼的轉換配置文件。按我的猜想:有了這些配置文件,就可以實現從Unicode與本地編碼的轉換,從而實現任意編碼之間的轉換。不知道猜得對不對?經過測試,如果APR_ICONV_PATH沒有配置,則可能導致亂碼,如果APR_ICONV_PATH配置錯誤,則很可能導致亂碼。當APR_ICONV_PATH配置正確時,總能正確顯示中文路徑,因此,應正確配置APR_ICONV_PATH。

            至于,SVN_EDITOR=notepad.exe,的配置,似乎沒使用用處。

            如果是在DOS批處理中,可以使用:

            set LANG=zh_CN.UTF8
            set APR_ICONV_PATH=C:\Program Files\Subversion\iconv
            set SVN_EDITOR=notepad.exe

            來設置環境變量,確保svn命令需要的環境變量配置正確。

            posted on 2009-02-20 00:44 kin 閱讀(3834) 評論(12)  編輯 收藏 引用

            評論

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2010-07-06 21:30 HallieNorton

            We can speak a lot just about the chronicle of papers writing, but will state that the <a href="http://www.essaysprofessors.com/how-to-buy-an-essay.html">how to buy an essay</a> service could compose the best <a href="http://www.essaysprofessors.com/essay-paper.html">essay paper</a> eternally. Am I wrong?   回復  更多評論   

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2010-07-15 15:08 term papers

            I was doing each of research looking at some other term papers writing. and this is the fifth link to the search essay about this post as relayed by Google… so you are careful that you are add a free service for them and embellish their traffic. So if you morally support this then you should take the money but if your attitude has dominate at all and you’re against it then you should believably drag them. But it's still yours to choose.  回復  更多評論   

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2010-08-08 01:28 home loans

            Do not enough money to buy a house? You should not worry, because that is achievable to take the loan to resolve all the problems. Hence get a consolidation loan to buy all you require.   回復  更多評論   

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2010-08-11 18:24 buy an essay

            It is hard a bit to find information close to this topic,but essay writing services would suggest to buy an essay to receive proper knowledge and thst’s available to order written essays per very small costs!   回復  更多評論   

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2010-11-09 01:07 buy dissertation

            In the complicated way to the academic grade people have to buy thesis sample corresponding with this topic in the buy thesis service or professional dissertation writing.   回復  更多評論   

            # re: svn list 顯示中文亂碼問題的解決方法 [轉載] 2011-07-23 04:44 essay service

            I never think that I do not correctly when come to the essay papers service and order essay papers. Moreover, that aids me mastering writing techniques.   回復  更多評論   

            導航

            統計

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            国产综合久久久久| 97精品国产91久久久久久| 亚洲伊人久久成综合人影院 | 欧美久久一区二区三区| 亚洲婷婷国产精品电影人久久| 久久无码高潮喷水| 国产成人久久激情91| 中文成人无码精品久久久不卡 | 久久噜噜电影你懂的| 久久精品这里只有精99品| 久久人人爽人人爽人人av东京热| 精品久久8x国产免费观看| 久久久久国色AV免费看图片| 久久棈精品久久久久久噜噜| 亚洲欧美日韩精品久久亚洲区| 国产精品久久国产精品99盘| 狠狠综合久久AV一区二区三区| 精品国产综合区久久久久久| 日韩精品久久无码人妻中文字幕| 人妻丰满?V无码久久不卡| 久久福利青草精品资源站免费| 亚洲精品无码久久久久去q | 久久久久久久久久久久中文字幕| 久久久噜噜噜久久| 亚洲国产精品一区二区久久| 色综合久久综合中文综合网| | 女人香蕉久久**毛片精品| 无码人妻久久一区二区三区 | 久久精品人成免费| 久久精品中文无码资源站| 久久综合给合综合久久| 婷婷综合久久狠狠色99h| 久久婷婷五月综合国产尤物app| 亚洲αv久久久噜噜噜噜噜| 少妇熟女久久综合网色欲| 精品久久久一二三区| 亚洲综合伊人久久综合| 亚洲精品无码久久久久去q| 亚洲AV无码1区2区久久| 久久综合亚洲欧美成人|