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

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

问题描述

我在 Centos 5.5 上安装了 Ruby 1.9.2.每次我安装 gem 时,我都会收到错误

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

gem 仍然可以正常安装,但有些事情我不能做.例如使用 SproutCore.我得到了这个小宝石(双关语).

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 上周更新,本应帮助解决编码问题.

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

试试 gem update rdoc 看看是否有帮助.

Try gem update rdoc and see if that helps.

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

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