Encoding problem in ASP.NET MVC + MySQL
I have some trouble showing right single quote from mysql database.
Screenshot:
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
精彩评论