ruby-on-rails-3 - 无法将 bin/wkhtmltopdf_linux_386 的 "\x90"从 ASCII-8BIT 转换为 UTF-8,跳过

标签 ruby-on-rails-3

9.3和rails 3.2.13在我的应用程序中创建PDF,所以我安装 gem install wkhtmltopdfgem 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/

相关文章:

javascript - 无法 AJAXify 功能搜索

ruby-on-rails-3 - rails 3.1,capybara-webkit,为什么 page.execute_script 失败?

ruby-on-rails - Ruby/Rails 应用程序测试 - 模拟 Http 服务/响应

ruby-on-rails - 将 after_validation 与 if 或子句一起使用

ruby-on-rails - 很抱歉,出了点问题(Ruby on Rails)

sql - 将 Rails mysql SQL 转换为与 postgresql 一起使用

ruby-on-rails - Net::SMTPFatalError: 550 5.1.1 收件人地址被拒绝:本地收件人表中的用户未知

ruby-on-rails-3 - 在 heroku 上生产之前部署到测试服务器

ruby-on-rails - 如何将字符串中每个单词的首字母大写

ruby-on-rails-3 - 使用 rails 3 查询特定列