Home > CMS Tutorial > WordPress > One trick to solve the Chinese garbled problem of wordpress URL

One trick to solve the Chinese garbled problem of wordpress URL

藏色散人
Release: 2021-12-02 15:04:24
forward
3529 people have browsed it

The following tutorial column of WordPress will introduce to you how to solve the Chinese garbled problem of WordPress URL. I hope it will be helpful to friends in need!

How to solve the problem of Chinese garbled characters in wordpress URL?

The Chinese part of the jump URL in wordpress is all garbled characters
For example:

One trick to solve the Chinese garbled problem of wordpress URL

Solution:

apache configuration, the file contains the description address of apache, this paragraph can be added to these contexts, server config, virtual host, directory, . htaccess

AddDefaultCharset utf-8
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Serve the following file types with the media type `charset`
# parameter set to `UTF-8`.
#
# https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset
<IfModule mod_mime.c>
    AddCharset utf-8 .atom \
                     .bbaw \
                     .css \
                     .geojson \
                     .js \
                     .json \
                     .jsonld \
                     .manifest \
                     .rdf \
                     .rss \
                     .topojson \
                     .vtt \
                     .webapp \
                     .webmanifest \
                     .xloc \
                     .xml \
                     .swf
</IfModule>
Copy after login

Then clear the browser cache

One trick to solve the Chinese garbled problem of wordpress URL

The above is the detailed content of One trick to solve the Chinese garbled problem of wordpress URL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template