Title: url-encode in wordpress
Last modified: August 18, 2016

---

# url-encode in wordpress

 *  [afrael](https://wordpress.org/support/users/afrael/)
 * (@afrael)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/url-encode-in-wordpress/)
 * Hi.
    I’m from Poland and now when I add a post i have url like: domain.pl/topic_name.
   html but when I add some of polish words like “dzierżązna” url is domain.pl/dzierzazna.
   html (wordpress change polish mark like ą ę to a e) but I wanna use url_encode
   and i want urls like domain.pl/dzier%C5%BC%C4%85zna.html Where i can find tthis
   in wordpress and how i can change this? Greetings.

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

 *  Thread Starter [afrael](https://wordpress.org/support/users/afrael/)
 * (@afrael)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/url-encode-in-wordpress/#post-595094)
 * Does anybody know?
 *  Thread Starter [afrael](https://wordpress.org/support/users/afrael/)
 * (@afrael)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/url-encode-in-wordpress/#post-595128)
 * Ok. I found this:
 * <?php
    function sanitize_title_with_urlencode($title) { $title = urlencode($title);
   $title = strtolower($title); $title = str_replace(‘+’, ‘-‘, $title); return $
   title; }
 * remove_action(‘sanitize_title’, ‘sanitize_title_with_dashes’);
    add_action(‘sanitize_title’,‘
   sanitize_title_with_urlencode’);
 * ?>
 *  [Chris Kepinski](https://wordpress.org/support/users/phpworker/)
 * (@phpworker)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/url-encode-in-wordpress/#post-595243)
 * Hi there, I have similar problem with my WP 2.1. I/ have installed in on [http://zespółaperta.pl](http://zespółaperta.pl)
   domain, no images are shown, also links are generated in wrong way: [http://zespaperta.pl/&#8230](http://zespaperta.pl/&#8230);,
   so the “ół” phrase is omitted. Also I realised there’s something wrong with options,
   the settings WordPress address and Blog address are somehow filtered so, even
   updated they become with the same “ół” error .
    I suppose Afrael’s solution could
   help but I don’t know how to use the code he shared.
 * Any help, please?

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

The topic ‘url-encode in wordpress’ is closed to new replies.

## Tags

 * [encode](https://wordpress.org/support/topic-tag/encode/)
 * [url](https://wordpress.org/support/topic-tag/url/)
 * [url-encode](https://wordpress.org/support/topic-tag/url-encode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Chris Kepinski](https://wordpress.org/support/users/phpworker/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/url-encode-in-wordpress/#post-595243)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
