解决Jdeveloper中CVS Check In后乱码问题

来源:互联网 发布:淘宝网商贷款逾期10天 编辑:程序博客网 时间:2024/06/11 16:16

CVS Checkin后带中文内容的文件可能会变成乱码,解决方法如下:

方法一:在Versioning Navigator→CVS→CVS Connection上右键选择setEncoding,然后选择和Application一致的字符集。

                 

                 

方法二:笔者发现,在有些Jdeveloper中居然没有以上的设置项,此时笔者找到此设置的配置文件,WINDOWS 7系统位于C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.jdeveloper.cvs 下,你的路径可能和这不一样,你懂得。

注:你可以修改Jdeveloper系统文件夹的位置,可以参见http://blog.csdn.net/ygj26/article/details/7363948

                  修改文件:cvs_connect.xml,添加connection_encoding部分,如下:

[html] view plaincopy
  1. <?xml version = '1.0' encoding = 'UTF-8'?>  
  2. <connection_list class="java.util.HashMap"   
  3.                  xmlns="http://xmlns.oracle.com/jdeveloper/110000cvs-connections">  
  4.    <Item>  
  5.       <Key>:pserver:user@host:/xxxx</Key>  
  6.       <Value class="java.util.HashMap">  
  7.          <Item>  
  8.             <Key>connect_auto_connect</Key>  
  9.             <Value class="java.lang.Boolean">true</Value>  
  10.          </Item>  
  11.          <!--修改此处-->  
  12.          <!-------Start--------------->  
  13.          <Item>  
  14.             <Key>connect_encoding</Key>  
  15.             <Value>UTF-8</Value>  
  16.          </Item>  
  17.          <!-------End----------------->  
  18.          <Item>  
  19.             <Key>connect_name</Key>  
  20.             <Value>:pserver:user@host:/xxxx</Value>  
  21.          </Item>  
  22.          <Item>  
  23.             <Key>connect_root</Key>  
  24.             <Value>:pserver:user@host:/xxxx</Value>  
  25.          </Item>  
  26.       </Value>  
  27.    </Item>  
  28. </connection_list>  
  29. 转自:http://blog.csdn.net/ygj26/article/details/7970491
0 0
原创粉丝点击