svn: Valid UTF-8 data 错误的解决

| |
[不指定 2010/01/19 10:49 | by real ]
有时候,我们在项目svn提交时会出现这样的错误,
svn: Valid UTF-8 data
(hex: 47 64 20 53 63)
followed by invalid UTF-8 sequence
(hex: e9 6e 69 63)

这样的错误的原因是所提交的文件中包含非utf8的编码, 假如你知道该非utf8编码是什么编码类型的话(例如 :iso-8859-15),可以这样解决这个错误:

convmv -r -f iso-8859-15 -t utf8 --notest -i /my/project/path

convmv命令可通过 yum -y install convmv来安装
Tags:
svn | 评论(0) | 引用(0) | 阅读(748)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写