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

One trick to solve the Chinese garbled problem of wordpress URL

藏色散人
藏色散人forward
2021-12-02 15:03:033496browse

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>

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete