Gem更新:无法转换“\xE7” UTF-8转换为ASCII-8BIT到UTF-8转换为US-ASCII [英] Gem update: unable to convert "\xE7" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII

查看:255
本文介绍了Gem更新:无法转换“\xE7” UTF-8转换为ASCII-8BIT到UTF-8转换为US-ASCII的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚在一段时间没有更新的轻型服务器计算机上运行 gem update ,并且正在获取无法转换的负载\ X??到UTF-8转换为ASCII-8BIT到UTF-8到US-ASCII ......的错误,包括一个除控制台之外的任何人都知道发生了什么事情?

  $ sudo gem update 
为riilties-3.0.4安装ri文档...
为minitest-2.0.2安装ri文档...
为net-ssh-2.1.0安装ri文档...
无法在从ASCII-8BIT到UTF-8的转换中将\xE7转换为UTF-8为lib / net的US-ASCII /ssh/authentication/pageant.rb,跳过
无法将lib \\ net / ssh / buffered_io.rb中的\ xC3转换为UTF-8 ,在lib / net / ssh / service / forward.rb中跳过
无法将\ xC3转换为UTF-8从ASCII-8BIT转换为UTF-8转换为US-ASCII,跳过
无法在转换为ASCII-8BIT至UTF-8为US-ASCII的THANKS.rdoc中将\xC3转换为UTF-8,跳过
无法在转换中将\ xC3转换为UTF-8对于CHANG,从ASCII-8BIT到UTF-8到US-ASCII ELOG.rdoc,跳过
为rails-3.0.4安装ri文档...
找不到lib文件
安装ri文件for rails3-generators-0.17.4 ... $对于README.rdoc,b $ b无法将\ xC3转换为UTF-8转换为ASCII-8BIT转换为UTF-8转换为US-ASCII,跳过
安装rdoc-3.5.3的ri文档.. 。
无法将U + 201D从UTF-8转换为US-ASCII的lib / rdoc / text.rb,跳过
无法在从ASCII转换中将\ xC3转换为UTF- 8BIT到UTF-8到US-ASCII for History.txt,跳过
安装rspec-core-2.5.1的ri文档...
无法将\ xC2转换为UTF-8将lib-rspec / core / subject.rb从ASCII-8BIT转换为UTF-8转换为US-ASCII,跳过
安装rspec-expectations-2.5.0的ri文档...
无法转换\xC2转换为UTF-8转换为ASCII-8BIT到UTF-8转换为US-ASCII的lib / rspec / matchers.rb,跳过
安装rspec-mocks-2.5.0的ri文档.. 。
Insta lling ri文档,用于rspec-2.5.0 ...
安装ri文档,用于rspec-rails-2.5.0 ...


解决方案

我在使用iTerm2而不是默认的OS X Terminal.app的Mac OS X上遇到类似的问题。
一旦我将 export LC_CTYPE =utf-8添加到〜/ .bash_profile中,iTerm2并没有正确设置LC_CTYPE,因此gem的安装过程很顺利。 / p>

注意:当然您可以将导出添加到任何其他配置文件文件


just ran gem update on a light use server machine that hadn't been updated in a while... and am getting loads of 'unable to convert "\x??" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for..." errors. Included is an except from console. anyone know what's going on?

$ sudo gem update
Installing ri documentation for railties-3.0.4...
Installing ri documentation for minitest-2.0.2...
Installing ri documentation for net-ssh-2.1.0...
unable to convert "\xE7" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for lib/net/ssh/authentication/pageant.rb, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for lib/net/ssh/buffered_io.rb, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for lib/net/ssh/service/forward.rb, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for THANKS.rdoc, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.rdoc, skipping
Installing ri documentation for rails-3.0.4...
file 'lib' not found
Installing ri documentation for rails3-generators-0.17.4...
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.rdoc, skipping
Installing ri documentation for rdoc-3.5.3...
unable to convert U+201D from UTF-8 to US-ASCII for lib/rdoc/text.rb, skipping
unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for History.txt, skipping
Installing ri documentation for rspec-core-2.5.1...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for lib/rspec/core/subject.rb, skipping
Installing ri documentation for rspec-expectations-2.5.0...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for lib/rspec/matchers.rb, skipping
Installing ri documentation for rspec-mocks-2.5.0...
Installing ri documentation for rspec-2.5.0...
Installing ri documentation for rspec-rails-2.5.0...

解决方案

I have had a similar issue on my Mac OS X using iTerm2 instead of the default OS X Terminal.app. The LC_CTYPE is not set properly by iTerm2, once I have added export LC_CTYPE="utf-8" to ~/.bash_profile the gem installation goes smoothly.

note: of course you can add the export to any of the other profile files

这篇关于Gem更新:无法转换“\xE7” UTF-8转换为ASCII-8BIT到UTF-8转换为US-ASCII的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆