2011-06-13 19 views
0

我从编码为Unicode越南字符集的数据库中显示文字。但它不能正确显示。如何在Ruby中显示非美国文字(Unicode)

Please see issue here

+0

既然我已经解决了部分问题,我就如何真正将数据存储在数据库中做了一些假设。我还会假设Ruby有一种方法来设置输出编码。 – 2011-06-13 03:43:38

+0

感谢您的支持 – khanh 2011-06-13 03:58:45

+0

您可以指定Ruby版本吗?你是否相应地设置了Content-Type? – spektom 2011-06-13 04:17:09

回答

2

你有没有试过在你的环境下把它添加到你的database.yml中?

encoding: utf8 
相关问题