2

9.3 和 rails 3.2.13 在我的应用程序中创建 PDF 所以我安装 gem install wkhtmltopdfgem install wkhtmltopdf-binary -v '0.9.9.1'但我收到以下消息如何解决这个问题

宝石安装 wkhtmltopdf

成功安装 wkhtmltopdf-0.1.2 1 个 gem 安装 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
4

2 回答 2

2

错误是在安装文档时。尝试

gem install wkhtmltopdf --no-document
于 2013-04-04T09:38:17.957 回答
0

这是文档问题。这样做:gem update rdoc在安装 gem 之前。它应该修复它。--no-document或者只是忽略带有密钥的文档安装

于 2015-03-29T22:54:22.500 回答