• 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
    When I deploy a WordPress site that runs on B to static HTML, special characters are not encoded correctly: 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
    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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    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

    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

    (@thiomas)

    Hi Leon,
    Thanks, I’ll investigate and keep you posted when I’ve found a solution.
    Thomas

    Thread Starter Thomas

    (@thiomas)

    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

    Hi.
    Same here.
    Russian text is not encoded properly.

    Plugin Author Leon Stafford

    (@leonstafford)

    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.