Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails - unable to convert "\x89" from ASCII-8BIT to UTF-8 for xxx/xxxx/xxxx

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?

like image 260
nerdiplayboy Avatar asked Aug 14 '13 15:08

nerdiplayboy


2 Answers

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

Then to regenerate the documentation

gem rdoc --all --overwrite
like image 119
Brian Avatar answered Nov 02 '22 16:11

Brian


Set such environment variables before you do install:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
like image 6
Vitaliy Yanchuk Avatar answered Nov 02 '22 18:11

Vitaliy Yanchuk