Have a look at the PHP function urlencode()
, that will hopefully help.
Also, in the latest update of WordPress (3.3.1) they have fixed it so that permalinks (post slugs) no longer contain special characters. This of course doesn’t help with your already existing slugs, but I’m sure there are ways and means of cleaning that field in your database.
Related Posts:
- Is ‘# -*- coding: utf-8 -*-‘ also a comment in Python?
- What is the difference between UTF-8 and Unicode?
- Byte and char conversion in Java
- What is “=C2=A0” in MIME encoded, quoted-printable text?
- Strange characters – despite everything being UTF-8
- One for the gurus: upgrade to 3.x messed up only filenames with accented chars
- Word press replacing unicode characters with “?”s
- How to set charset for wp_remote_post request?
- Outputting post title without encoding
- Apostrophes showing up as ΓÇÖ after converting from Windows to Linux
- WordPress content shows this character ​​
- Symbols such as £ end up being  in the database
- Fix encoding ’ [closed]
- Getting Non-printable characters were found while entering Euro Symbol
- How to deal with apostrophes
- Question mark on special chars
- Encoding Issue while using French in WordPress
- Get ?? for unicode characters
- WordPress theme character encoding issue
- character encoding problem in custom template
- restored old database now some characters have changed?
- WordPress plugin problem with encoding
- Post removes any text from post that’s following special characters
- WordPress Dashboard Characters Messed Up
- How to make sure the letters ‘pez’ do not convert to a fish symbol? [closed]
- Problem some Persian texts show in ISO-8859-5
- HTML encoding issues – “” character showing up instead of ” “
- hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
- Converting string to byte array in C#
- Does “\d” in regex mean a digit?
- Where does this come from: -*- coding: utf-8 -*-
- how to convert negative hexadecimal to decimal
- python encoding utf-8
- The origin on why ‘%20’ is used as a space in URLs
- Using unicode character u201c
- Python decoding Unicode is not supported
- Random Question Mark Icons In WordPress Text
- Encode text string being appended as query to URL [closed]
- Truncating custom fields
- How to stop WordPress using utf8mb4_unicode_520_ci collation?
- Syntax error, unexpected ‘class’ (T_CLASS) on line 1 after upgrade to php 5.6.4
- Character encoding issue after changing servers
- How can I stop TinyMCE from converting my HTML entities to characters?
- WordPress Database Charset/Collate
- do_settings_sections() doesn’t escape quotes
- Remove “Category Archives: title” at the top of a category page [duplicate]
- How to write Hebrew characters?
- What is wp_check_invalid_utf8?
- WordPress load-scripts.php encoding issue
- Text cut off on save
- Strange characters on wordpress site – Not UTF8 Issue
- How to diagnose and keep in check encoding issues?
- add_rewrite_rule not working for language specific characters
- Unexpected = (equal sign) characters in wp mail
- Website dumps encoded result
- How do I change database charset when using `wpdb`
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- TinyMCE as comment editor – encoding issues
- HTML Entities displaying improperly as malformed escaped code
- Post Content, Special Characters and Filters
- Non latin post slug truncate
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- images not showing after transfer
- Unicode characters displaying as ? after import using WP Clone
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Special Character Appearing in my WordPress Pages Content
- WordPress doesn’t display accents after migration
- encoded search terms with %20
- UTF-32be error WordPress
- How to distinguish between a hack and an encoding error?
- Uploaded image with non-english characters is named incorrectly in upload folder
- wp_mail encode ’ in ’ in subject
- Function to replace comment’s accented characters before posting
- WordPress site stopped working after simply opening header.php in the wp-admin editor
- Problem with UTF8. italian/russian characters
- How to automatically convert “%” and “+” in image urls on upload
- ✓ Checkmark Character Encoding Issue In WordPress Editor
- How to Fix Mangled Thai Characters
- Encode URL for WhatsApp “click to chat” without loosing accented characters
- Encoding matter – ? instead of € after settings field callback
- Issue with json decode in WordPress – value is not returning consistently
- WordPress Dutch characters encoding problem
- French accented text replaced with ? in woocommerce product list
- Encoding video without exec function
- How to encode correclty an url with the char “&” for an email?
- How can I automatically add a post with Latin characters?
- Migrating a WordPress site has broken UTF8 encoding
- All of my wordpress sites showing †Ù¥
- TinyMCE HTML Encode Backslash
- Plugin error on activation – breaks page encoding and prints the code of plugin php files
- Admin encoding problem
- wp-login.php ampersand in url results in 404
- WordPress Database Charset/Collate
- How to pass post title (which could include &) to Gravity Form
- Multisite   wrong encoding problem
- Language selection for blog doesn’t exist?
- Modify WordPress to not replace + (plus) characters from URLs?
- js code not stored in database currectly
- WordPress v3.1 Has Character Encoding Issue With Title/Permalink?
- wordpress shortcode url decode non Latin character