简体   繁体   English

Rails,Redmine,Mysql和SQL Server编码问题

[英]Rails, Redmine, Mysql and SQL Server encoding problems

We had redmine working with mysql (and mysql works fine with utf8). 我们使用Redmine来处理mysql(而mysql在utf8上工作正常)。 Now we needed to migrate the database to SQL Server (latin1 is the default for us). 现在,我们需要将数据库迁移到SQL Server(latin1是我们的默认值)。 The data acentuation is ok in SQL Server after the migration, but in the browser, data coming from the database is showing ? 迁移后,在SQL Server中可以进行数据集中,但是在浏览器中,显示来自数据库的数据? in the acentuation place. 在集中的地方。 What could be the solution to show characters correctly in the browser? 在浏览器中正确显示字符的解决方案是什么?

HTML encode it. HTML对其进行编码。 Browsers support HTML only, and HTML says all non-english characters are to be specially coded. 浏览器仅支持HTML,HTML表示所有非英语字符都必须进行特殊编码。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM