9.3和rails 3.2.13在我的应用程序中创建PDF所以我安装 gem install wkhtmltopdf 和 gem install wkhtmltopdf-binary -v'0.9.9.1'但我收到以下消息如何解决此问题
gem install wkhtmltopdf
成功安装了wkhtmltopdf-0.1.2 安装1个宝石 为wkhtmltopdf-0.1.2安装ri文档...
unable to convert "\x90" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to convert "\xCE" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_darwin_386, skipping
Installing RDoc documentation for wkhtmltopdf-0.1.2...
unable to convert "\x90" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to convert "\xCE" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_darwin_386, skipping
gem install wkhtmltopdf-binary -v'0.9.9.1'
Fetching: wkhtmltopdf-binary-0.9.9.1.gem (100%)^[[1;2C
Successfully installed wkhtmltopdf-binary-0.9.9.1
1 gem installed
Installing ri documentation for wkhtmltopdf-binary-0.9.9.1...
unable to convert "\xA3" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_x64, skipping
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to convert "\xCE" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_darwin_386, skipping
Installing RDoc documentation for wkhtmltopdf-binary-0.9.9.1...
unable to convert "\xA3" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_x64, skipping
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to convert "\xCE" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_darwin_386, skipping
答案 0 :(得分:2)
安装文档时出错。尝试
gem install wkhtmltopdf --no-document
答案 1 :(得分:0)
这是文档问题。在宝石安装之前执行此操作:gem update rdoc
。它应该解决它。或者只需使用--no-document
密钥