1.9.2 兼容模式下的 jruby 1.6.3 是否可以与 Rails 2.3.11 一起使用?意思是有人尝试过吗?

发布于 2024-11-27 18:11:27 字数 94 浏览 3 评论 0原文

我们正在使用 jruby 1.6.x,由于 UTF8 支持,我们希望切换到 1.9 模式。但是,我们不想将 Rails 从 2.3.8/2.3.11 升级到 Rails 3。

We are using jruby 1.6.x and we would like to switch to 1.9 mode because of UTF8 support. However, we don't want to upgrade rails from 2.3.8/2.3.11 to rails 3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧桑㈠ 2024-12-04 18:11:27

我尝试首先将 Rails 2.3 应用程序升级到 ruby​​ 1.9.3。存在各种与 utf8 相关的问题。其中一些问题可以通过在文件中放入 utf8 标头来轻松修复,但有些问题仅在特殊情况下才会出现,例如,当错误消息是由 Rails 堆栈深处某处的不同部分构建时,其中一个部分是ascii,另一个utf8。
当我调查问题时,我发现其他问题也有不同类型的 utf8 问题。
所以先升级到 Rails 3.0 然后再升级到 ruby​​ 1.9 会更容易

I tried to upgrade a Rails 2.3 application first to ruby 1.9.3. There were all kind of utf8-related problems. Some of them you can fix easily, by putting a utf8 header in the file, but some of the problems occur only in special conditions, for example when an error message is constructed from different parts somewhere deep in the rails stack, an one part was ascii, the other utf8.
When I investigated the problems I found other have also different kind of utf8 problems.
So it easier to go first to rails 3.0 and then to ruby 1.9

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文