Title: Character Encoding
Last modified: January 25, 2019

---

# Character Encoding

 *  [Thomas](https://wordpress.org/support/users/thiomas/)
 * (@thiomas)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/)
 * Hi Leon,
    I love your plugin but now I have run into a very strange encoding 
   problem. When I deploy a WordPress site that’s run by hosting company A to static
   HTML hosted on B, everything’s fine: [https://lejeunefashion.de](https://lejeunefashion.de)
   When I deploy a WordPress site that runs on B to static HTML, special characters
   are not encoded correctly: [http://static.lejeunefashion.de](http://static.lejeunefashion.de)
   The deploy method doesn’t matter; the problem also occurs when I deploy to a 
   zip file. The original WordPress site is OK: [http://cms.lejeunefashion.de](http://cms.lejeunefashion.de)
   I’m using WP2Static 6.3 and there are no other plugins installed. It seems like
   the problem is somehow related to the hosting but I have no clue where to look
   or what to ask. Any idea? Many thanks in advance, Thomas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcharacter-encoding-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11133314)
 * Hi Thomas,
 * Very interesting.
 * It may be down to the database encoding, I recently converted over a site as 
   I started using UTF-8 chars and noticed them OK in WP, but not surviving the 
   DOM parsing that I was doing in my theme’s functions…
 * This may take a bit of trial, error and search for you:
 * [https://codex.wordpress.org/Converting_Database_Character_Sets](https://codex.wordpress.org/Converting_Database_Character_Sets)
 * You may get lucky and just be able to change the options in wp-config.php.
 * Please let me know how you get on.
 * Cheers,
 * Leon
 *  Thread Starter [Thomas](https://wordpress.org/support/users/thiomas/)
 * (@thiomas)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11138231)
 * Hi Leon,
    Thanks, I’ll investigate and keep you posted when I’ve found a solution.
   Thomas
 *  Thread Starter [Thomas](https://wordpress.org/support/users/thiomas/)
 * (@thiomas)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11153137)
 * Hi Leon,
 * I checked
    – wpconfig: charecter set looks correct [define(‘DB_CHARSET’, ‘utf8’);]–
   database records: they are good, Umlauts are there – export directly from database:
   correct, Umlauts are there – export through wordpress admin backend (tools/ export):
   also correct
 * Files exported through wp2static still have the encoding errors.
 * BTW: Links in the inital support request don’t work any longer.
 * Best,
    Thomas
 *  [miskamyasa](https://wordpress.org/support/users/miskamyasa/)
 * (@miskamyasa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11153182)
 * Hi.
    Same here. Russian text is not encoded properly.
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11164606)
 * Hi all,
 * Sorry for the late follow-up.
 * I’m not sure how well I can troubleshoot these encoding issues without access
   to the system. What we can possibly do if these issues don’t resolve, is that
   I’ll setup some new temporary servers with full root/SSH access, ask you to replicate
   your site there and I can then login and debug while running the exports.
 * Please ensure that your WordPress site’s source code is containing `<meta charset
   ="utf-8">` within the head tags. Without this, the DOM parsing mechanism used
   within the plugin fails to interpret as UTF-8.
 * Please keep me posted with any progress you make. At this point, I’d suggest 
   trying more things, just to eliminate them. Not sure how well Simply Static handles
   UTF-8, but worth trying with that plugin. With a little fiddling, WP2Static can
   deploy a site converted to static by Simply Static and I can make that a seamless
   process with a future release.
 * Cheers,
 * Leon

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Character Encoding’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/static-html-output-plugin_cce3eb.
   svg)
 * [WP2Static](https://wordpress.org/plugins/static-html-output-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-html-output-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-html-output-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/static-html-output-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-html-output-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-html-output-plugin/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/character-encoding-7/#post-11164606)
 * Status: not resolved