9.3和rails 3.2.13在我的应用程序中创建PDF,所以我安装 gem install wkhtmltopdf 和 gem install wkhtmltopdf-binary -v '0.9.9.1' 但我收到以下消息如何解决此问题
gem 安装 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
最佳答案
安装文档时出现错误。尝试一下
gem install wkhtmltopdf --no-document
关于ruby-on-rails-3 - 无法将 bin/wkhtmltopdf_linux_386 的 "\x90"从 ASCII-8BIT 转换为 UTF-8,跳过,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15807535/