Garbled error in blogengine. net 1.5

Source: Internet
Author: User
Tags blogengine

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.]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.