开发者

Encoding problem in ASP.NET MVC + MySQL

I have some trouble showing right single quote from mysql database.

Screenshot:

Encoding problem in ASP.NET MVC + MySQL

This problem appears only when开发者_开发知识库 I deploy the application on a server.

If I start the application locally, connected to the database on the server, it's ok.

Any ideas?


Perhaps the encoding is set different on the server than your system. Check what the default encoding is on your system and then the server. The MySQL will just use what is set in the DB not the system.

http://msdn.microsoft.com/en-us/library/system.text.encoding.default.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜