Title: [Plugin: Permalink Editor] Language problems
Last modified: August 19, 2016

---

# [Plugin: Permalink Editor] Language problems

 *  [activi](https://wordpress.org/support/users/activi/)
 * (@activi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/)
 * Hi,
 * I tried to use your plug-in to make a non-english URL link.
 * I found out that when i press the “Customize” button and enter the non latin 
   character and press on “ok” the non english character disapear.
 * How can i make them not to disapear.
 * Thanks,
    Shahar
 * [http://wordpress.org/extend/plugins/permalink-editor/](http://wordpress.org/extend/plugins/permalink-editor/)

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

 *  Thread Starter [activi](https://wordpress.org/support/users/activi/)
 * (@activi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/#post-2019315)
 * Hi
 * I found what was the problem. the Plug in don`t decode and encode the URL input.
 * Can you please tell me where and how to change the code that it will encode and
   decode. That`s way your plugin is going for the oscar 🙂
 * Thanks,
    Shahar
 *  Plugin Contributor [Steve](https://wordpress.org/support/users/36flavours/)
 * (@36flavours)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/#post-2019568)
 * Hi,
 * I have relaxed the permalink reformatting function a little, allowing for Non-
   English Characters to be entered.
 * This update requires some alterations and testing, which I will carry out tomorrow,
   however you can get it working by replacing the reformat_permalink function in
   index.php with the following as a temporary solution:
 *     ```
       function reformat_permalink( $permalink, $prefix = '/' )
       {
       	if ( empty( $permalink ) )
       		return null;
       	// Basic sanitize functionality...
       	$permalink = sanitize_text_field( $permalink );
       	// Replace hashes and white space...
       	$permalink = str_replace( array( '#', ' ' ), array( '', '-' ), $permalink );
       	// Remove multiple dots and slashes...
       	$permalink = preg_replace(
       		array( '#/+#', '#\.+#' ),
       		array( '/', '.' ),
       		$permalink
       	);
       	// Return formatted permalink with prefix...
       	return $prefix . ltrim( $permalink, '/' );
       }
       ```
   
 * Hopefully the update will be committed within the next day or so.
 * Thanks!
 *  Plugin Contributor [Steve](https://wordpress.org/support/users/36flavours/)
 * (@36flavours)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/#post-2019578)
 * Hi,
 * I have made some adjustments to the plugin, which means that it now converts 
   all accent characters to ASCII characters when reformatting permalinks.
 * The update has been tagged as version 0.2.7 and should be available for download
   very soon.
 *  Thread Starter [activi](https://wordpress.org/support/users/activi/)
 * (@activi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/#post-2019658)
 * Hi,
 * I have 0.2.7 and i updated the function
 * then non-english characters stay but when accessing directly on the website with
   special characters 404 occurs.
 * this could only be prevented if you put the %pagename% instead of the %postname%
   in the settings. but this makes all the posts in the websites to have 404 errors.
 * is there any way to fix that

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

The topic ‘[Plugin: Permalink Editor] Language problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/permalink-editor.svg)
 * [Permalink Editor](https://wordpress.org/plugins/permalink-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-editor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [activi](https://wordpress.org/support/users/activi/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-permalink-editor-language-problems/#post-2019658)
 * Status: not resolved