$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>localization - Wordpress in French Language|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

localization - Wordpress in French Language

matteradmin9PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I am migrating a French wordpress website. After completion the website keeps displaying special characters, specially the black diamonds with white question mark inside �. I have installed the PO file inside wp-content/languages/ I have set up the language to French in the WP settings but still no luck.

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I am migrating a French wordpress website. After completion the website keeps displaying special characters, specially the black diamonds with white question mark inside �. I have installed the PO file inside wp-content/languages/ I have set up the language to French in the WP settings but still no luck.

Share Improve this question asked Mar 3, 2019 at 23:10 Albuquerque Web DesignAlbuquerque Web Design 1431 gold badge1 silver badge6 bronze badges 1
  • Where are these characters displayed? – Krzysiek Dróżdż Commented Mar 4, 2019 at 5:36
Add a comment  | 

1 Answer 1

Reset to default 0

You have a UTF-8 encoding issue.

You are seeing single, unprintable bytes. That suggests the data is either stored in a single byte character set, or something is converting it from UTF-8 to a single byte character set.


Regarding PO files (actually MO files are what WordPress reads). These need to be UTF-8 encoded.

You can check if the PO headers show "Content-Type: text/plain; charset=UTF-8" but really this doesn't prove they are. Try opening them in a text editor that lets you switch between character sets. If the text only renders correctly in a single-byte character set (like ISO-8859-1) then you'll need to save the file out as UTF-8 and recompile the MO.

If you post a link to your PO I can tell you for sure whether they're wrongly encoded.


If you also have bad text in your post content, then either the stored data is wrongly encoded or the database connection is converting it.

If your WordPress config has standard settings like define('DB_CHARSET','utf8') then the latter is less likely, but check the WordPress documentation on character sets and collation.

You say you "migrated" your site. If that involved SQL dumps then you may have broken your UTF-8 encoding at the database level.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far