Solution to BlogEngine.net garbled 1.5

Source: Internet
Author: User
Tags blogengine

Symptom: From BlogEngine.net updated from 1.4.5 to 1.5, the background management page is always garbled and the page layout is a mess.

Follow the steps below to solve 1. In web. config, set the page encoding to UTF-8 by default and set fileEncoding = "UTF-8" in the globalization section of web. config"

<Configuration>
<System. web>
<Globalization fileEncoding = "UTF-8"/>
</System. web>
</Configuration>

2. Convert all files into UTF-8 format

Some people on the Internet say that there is a problem with Http compression, so we can just remove it and choose it. It may be useful to solve the problem.

Still garbled after converting all files to UTF-8 format.

3. System. Text. Encoding. Default --> System. Text. Encoding. UTF8

In BlogEngine. NET_1.5 _ (source) \ BlogEngine. core \ Web \ HttpModules \ CompressionModule. in the cs file, use System. text. encoding. default to read/write resources, but in the Chinese System, System. text. encoding. default is not a UTF-8, and all ASP. NET input and output are all UTF-8, so the font is messy and changed to System. text. encoding. UTF8 solves the problem.

References

Solve the problem that BlogEngine. NET 1.5.0 encountered a Chinese character problem after installing

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.