简体   繁体   English

Rails 2.3.5,Ruby 1.9,SQLite 3不兼容的字符编码:UTF-8和ASCII-8BIT

[英]Rails 2.3.5, Ruby 1.9, SQLite 3 incompatible character encodings: UTF-8 and ASCII-8BIT

I know that question with same title has been asked almost 6 month ago. 我知道差不多六个月前有人问过这个标题相同的问题。

I have Googled for this problem and I have not found any working solution. 我已经用Google搜索这个问题,但没有找到任何有效的解决方案。

Has there been any fixes for this very critical problem? 这个非常关键的问题有没有解决的办法?

I need to get my website running ASAP. 我需要让我的网站尽快运行。 Just to get the site up and running I'm even ready to add utf8 conversion methods to all my variables or risk to upgrade to Rails 3 beta 为了使站点正常运行,我什至准备将utf8转换方法添加到我的所有变量中,否则可能会升级到Rails 3 beta

Thank You in advance! 先感谢您!

Re the reason this was happening, here is a link to a similar question that was asked more recently than yours together with a response: 这是发生这种情况的原因,这是指向比您最近提出的类似问题的链接以及答复:

Check out this excellent blog post for an overview of the underlying problem and some possible solutions: 请查看这篇出色的博客文章,以概述潜在问题和一些可能的解决方案:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不兼容的字符编码:Ruby 1.9中的ASCII-8BIT和UTF-8 - incompatible character encodings: ASCII-8BIT and UTF-8 in Ruby 1.9 使用ruby 1.9.1p429的rails 2.3.5:不兼容的字符编码:ASCII-8BIT和UTF-8 - rails 2.3.5 with ruby 1.9.1p429 : incompatible character encodings: ASCII-8BIT and UTF-8 由于cookie的8位编码而导致错误“不兼容的字符编码:ASCII-8BIT和UTF-8”(Rails 3和Ruby 1.9) - Error 'incompatible character encodings: ASCII-8BIT and UTF-8' due to 8-bit encoding of cookies (Rails 3 and Ruby 1.9) Ruby异常:`不兼容的字符编码:ASCII-8BIT和UTF-8` - Ruby exception: `incompatible character encodings: ASCII-8BIT and UTF-8` rails不兼容的字符编码:json中的UTF-8和ASCII-8BIT - rails incompatible character encodings: UTF-8 and ASCII-8BIT in json Rails不兼容的字符编码:UTF-8和ASCII-8BIT - Rails incompatible character encodings: UTF-8 and ASCII-8BIT Rails 4:不兼容的字符编码:UTF-8和ASCII-8BIT - Rails 4: incompatible character encodings: UTF-8 and ASCII-8BIT Rails:geokit“不兼容的字符编码:UTF-8和ASCII-8BIT” - Rails: geokit “incompatible character encodings: UTF-8 and ASCII-8BIT ” Rails 3.1.0:不兼容的字符编码:ASCII-8BIT和UTF-8 - Rails 3.1.0: incompatible character encodings: ASCII-8BIT and UTF-8 加载Rails 3 SQLite数据库时不兼容的字符编码ASCII-8BIT和UTF-8 - incompatible character encodings ASCII-8BIT and UTF-8 when loading Rails 3 SQLite database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM