Blogengine. net 1.5 error: Garbled characters in the string.
Solution:
(1) Delete all Chinese Punctuation Marks in labels. zh-CN.resx.
(2) or modify web. config
<Globalization requestencoding = "UTF-8" responseencoding = "UTF-8" Culture = "Auto" uiculture = "Auto"/>
Replace with <globalization requestencoding = "gb18030" responseencoding = "gb18030" Culture = "Auto" uiculture = "Auto"/>
(3)
Set the web. change <globalization requestencoding = "UTF-8" responseencoding = "UTF-8" Culture = "Auto" uiculture = "Auto"/> to <globalization fileencoding = "gb2312" requestencoding = "gb2312" responseencoding "= "gb2312"/>
[After I make the above changes, sendArticleNo problem, but the comments are still garbled. If you set the browser to Unicode, you can see the comments, but the article is garbled.]
[I did not change that way. I modified the field type in the database and changed all varchar to nvarchar. All garbled gone...
Varchar can only store single-byte characters. Double-byte characters such as Chinese characters cannot be stored.]