本文介绍了Ruby on Rails - 无法转换“x89"xxx/xxxx/xxxx 从 ASCII-8BIT 到 UTF-8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的 linux 系统上的 rails 4.0.0 上安装 ruby​​,但我遇到了这种错误 unable to convert "x89" from ASCII-8BIT to UTF8 for guides/assets/images/getting_started/routing_error_no_route_matches.png、跳过和许多类似的错误,我在 这里 它不会造成任何影响,但我不明白为什么会这样.有什么指点吗?

I am installing ruby on rails 4.0.0 on my linux system , but i am getting this kind of errors unable to convert "x89" from ASCII-8BIT to UTF8 for guides/assets/images/getting_started/routing_error_no_route_matches.png, skipping and many similar errors , i read here that it won't cause any effect ,but i do not understand why it is coming . Any pointers?

推荐答案

您需要更新/安装支持转换的 rdoc gem 版本.那么当你安装 rails 或重新生成文档时,这些错误就不会在生成文档的过程中出现.

You need to update / install a version of the rdoc gem that supports the conversion. Then these errors won't appear during generation of the documentation when you install rails or when you regenerate the documentation.

gem install rdoc

然后重新生成文档

gem rdoc --all --overwrite

这篇关于Ruby on Rails - 无法转换“x89"xxx/xxxx/xxxx 从 ASCII-8BIT 到 UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:08