• <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 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載]

            svn list 顯示中文亂碼問(wèn)題的解決方法 [原創(chuàng) 2007-11-07 21:15:26]   
            我頂 字號(hào):

            很久沒用svn命令,忽然發(fā)現(xiàn):

            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>

            返回的內(nèi)容竟然是亂碼,正確的應(yīng)該是:

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

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

            在網(wǎng)上找了很久,最后,在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/  找到了解決方法,文章說(shuō),設(shè)置Windows系統(tǒng)環(huán)境變量:

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

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

            Microsoft Windows XP [版本 5.1.2600]
            (C) 版權(quán)所有 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>

            中文顯示正常了。

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

            APR_ICONV_PATH的設(shè)置應(yīng)該是關(guān)鍵所在,因?yàn)閕conv目錄保存了各種編碼的轉(zhuǎn)換配置文件。按我的猜想:有了這些配置文件,就可以實(shí)現(xiàn)從Unicode與本地編碼的轉(zhuǎn)換,從而實(shí)現(xiàn)任意編碼之間的轉(zhuǎn)換。不知道猜得對(duì)不對(duì)?經(jīng)過(guò)測(cè)試,如果APR_ICONV_PATH沒有配置,則可能導(dǎo)致亂碼,如果APR_ICONV_PATH配置錯(cuò)誤,則很可能導(dǎo)致亂碼。當(dāng)APR_ICONV_PATH配置正確時(shí),總能正確顯示中文路徑,因此,應(yīng)正確配置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

            來(lái)設(shè)置環(huán)境變量,確保svn命令需要的環(huán)境變量配置正確。

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

            評(píng)論

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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?   回復(fù)  更多評(píng)論   

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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.  回復(fù)  更多評(píng)論   

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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.   回復(fù)  更多評(píng)論   

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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!   回復(fù)  更多評(píng)論   

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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.   回復(fù)  更多評(píng)論   

            # re: svn list 顯示中文亂碼問(wèn)題的解決方法 [轉(zhuǎn)載] 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.   回復(fù)  更多評(píng)論   


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            久久久久亚洲AV无码专区首JN| 国产成人久久精品一区二区三区| 亚洲精品无码久久久| 精品久久久久久久久久中文字幕| 91久久香蕉国产熟女线看| 99久久精品免费| 久久久黄色大片| 久久久久久亚洲Av无码精品专口| 亚洲成色WWW久久网站| 久久婷婷五月综合97色一本一本| 国产婷婷成人久久Av免费高清| 狠色狠色狠狠色综合久久| 久久成人精品| 青青热久久综合网伊人| 精品久久久久久国产三级| 久久精品国产男包| 久久久这里有精品中文字幕| 精品久久人人爽天天玩人人妻| 久久久午夜精品福利内容| 99久久国产热无码精品免费| 99麻豆久久久国产精品免费| 狠狠色婷婷久久一区二区三区| 伊人久久大香线蕉影院95| 亚洲午夜福利精品久久| 国产精品久久国产精麻豆99网站| 久久影视综合亚洲| 久久WWW免费人成—看片| 人妻精品久久久久中文字幕一冢本| 国产精品久久久久久搜索| 久久免费视频6| 久久精品国产清自在天天线| 性做久久久久久久久久久| 日本免费久久久久久久网站| 久久精品亚洲乱码伦伦中文| 99久久综合国产精品免费| 免费国产99久久久香蕉| 久久精品卫校国产小美女| 色婷婷狠狠久久综合五月| 狠狠色丁香久久综合婷婷| 婷婷久久久亚洲欧洲日产国码AV | 91精品国产综合久久香蕉 |