Title: Fix utf8 characters/urls
Last modified: April 19, 2020

---

# Fix utf8 characters/urls

 *  [fisherhu](https://wordpress.org/support/users/fisherhu/)
 * (@fisherhu)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/utf-2/)
 * I had to modify the FileWriter.php to access utf-8 encoded urls:
 *     ```
       URI-path (raw)  :  /tag/%E7%81%BD/
       URI-path (clean):  /tag/\xe7\x81\xbd/
       ```
   
 * by simply adding urldecode() to the directory name.
 * Sample url: [https://blog.fisher.hu/tag/%e7%81%bd/](https://blog.fisher.hu/tag/%e7%81%bd/)
 * Actually not sure if I broke any standards, now it works for me. Probably it 
   is a good idea to make it configurable and/or add it to the file names too.
    -  This topic was modified 6 years, 1 month ago by [fisherhu](https://wordpress.org/support/users/fisherhu/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/utf-2/#post-12715798)
 * Thanks [@fisherhu](https://wordpress.org/support/users/fisherhu/)~!
 * I’ll be starting some new automated tests for WPMU/multilingual sites soon for
   V7 and will use this if it’s not yet implemented.
 * Hope WP2Static is otherwise going well for you and here to help with any other
   issues that pop up!
 * Cheers,
 * Leon

Viewing 1 replies (of 1 total)

The topic ‘Fix utf8 characters/urls’ 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/)

## Tags

 * [utf-8](https://wordpress.org/support/topic-tag/utf-8/)

 * 1 reply
 * 2 participants
 * Last reply from: [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/utf-2/#post-12715798)
 * Status: not a support question