elementor / static-html-output

Static HTML Output Plugin for WordPress

Home Page:https://statichtmloutput.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text display error, character encoding Latin-1?

fbka opened this issue · comments

commented

Looks like the static site is being interpreted as Latin-1 instead of UTF-8? Can't figure out why, since both input and output have <meta charset="UTF-8">

Input/Expected Output: ä ö ü
WP2Static Output : ä ö ü

2020-08-08 09:36:32 PHP VERSION 7.3.20 OS VERSION SunOS localhost 5.10 Generic_150401-49 i86pc WP VERSION 5.4.2 WP URL http://admin.mypasswordprotectedsite.de WP SITEURL http://admin.mypasswordprotectedsite.de WP HOME http://admin.mypasswordprotectedsite.de WP ADDRESS http://admin.mypasswordprotectedsite.de PLUGIN VERSION 6.6.7 VIA WP-CLI? STATIC EXPORT URL http://neu.mypasswordprotectedsite.de/ PERMALINK STRUCTURE /%postname%/ SERVER SOFTWARE Apache/2.4.43 (Unix) Active plugins: astra-sites/astra-sites.php elementor/elementor.php header-footer-elementor/header-footer-elementor.php static-html-output-plugin/wp2static.php Plugin options: additionalUrls: allowOfflineUsage: baseHREF: baseUrl: http://neu.mypasswordprotectedsite.de baseUrl-bitbucket: baseUrl-bunnycdn: baseUrl-folder: http://neu.mypasswordprotectedsite.de baseUrl-ftp: baseUrl-github: baseUrl-gitlab: baseUrl-netlify: baseUrl-s3: baseUrl-zip: baseUrl-zip: basicAuthPassword: ******************* basicAuthUser: obberg-admin bbBranch: bbPath: bbRepo: bbToken: ******************* bunnycdnStorageZoneAccessKey: ******************* bunnycdnPullZoneAccessKey: ******************* bunnycdnPullZoneID: bunnycdnStorageZoneName: bunnycdnRemotePath: cfDistributionId: completionEmail: crawl_delay: 0 crawl_increment: 1 crawlPort: debug_mode: 1 detection_level: posts_and_pages delayBetweenAPICalls: 0 deployBatchSize: 1 excludeURLs: ftpPassword: ******************* ftpRemotePath: ftpServer: ftpPort: ftpTLS: ftpUsername: ghBranch: ghCommitMessage: ghPath: ghRepo: ghToken: ******************* glBranch: glPath: glProject: glToken: ******************* netlifyHeaders: netlifyPersonalAccessToken: ******************* netlifyRedirects: netlifySiteID: removeConditionalHeadComments: removeHTMLComments: 1 removeWPLinks: removeWPMeta:

image

commented

Looks like I'm the only one experiencing this issue. Anything I can do to fix it myself?

You can try this updated build (note plugin name has changed): https://github.com/WP2Static/static-html-output-plugin/files/4822705/static-html-output-plugin-6.6.21.zip

But likely will suffer same issue. It has to do with how the plugin generates a modified HTML DOM. If your input site's code isn't UTF-8 and with right collation in database, can get this kind of issue. Sometimes, your DB and site settings are fine, but someone may have copy pasted some code from another source and it came in as wrong encoding.

The new WP2Static project doesn't write its own DOM, so you could try that if no luck here:

https://github.com/WP2Static/wp2static

PS. Cool that you're running Solaris?