Ruby错误UTF-8到ASCII [英] Ruby error UTF-8 to ASCII

查看:114
本文介绍了Ruby错误UTF-8到ASCII的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Centos 5.5上安装了Ruby 1.9.2。每次我安装一个gem,我得到错误

 错误:生成(gem)
的文档。 。MESSAGE:U + 2018从UTF-8到US-ASCII
... RDOC args:lib History.txt README.txt

宝石仍然安装确定,但有一些事情我不能做。像使用SproutCore,例如。我得到这个小宝石(双关意图)。

  sc-init xxxx 
〜创建的目录xxxx
FATAL〜US-ASCII中的无效字节序列

任何人都知道发生了什么,补救呢? Google对此没有多大帮助。

解决方案

RDoc上周更新,并且应该帮助解决编码问题。 / p>

尝试 gem update rdoc ,看看是否有帮助。


I have a Ruby 1.9.2 install on Centos 5.5. Every time I install a gem, I get the error

ERROR:  While generating documentation for (gem)
... MESSAGE:   U+2018 from UTF-8 to US-ASCII
... RDOC args: lib History.txt README.txt

The gem still installs ok, but there are certain things I can't do. Like use SproutCore, for example. I get this little gem (pun intended).

sc-init xxxx
 ~ Created directory at xxxx
FATAL ~ invalid byte sequence in US-ASCII 

Anyone have any idea what's going on, and how to remedy it? Google isn't much help on this one.

解决方案

RDoc updated last week, and was supposed to help fix encoding problems.

Try gem update rdoc and see if that helps.

这篇关于Ruby错误UTF-8到ASCII的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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