Solved

special chars in url

Posted on 2004-09-08
5
378 Views
Last Modified: 2008-02-01
Hey all
I have had this problem for awhile now.. been going around it but now i cannot i have to solve this plz help :D
Most of my website are for french ppl so they include special chars like é,è,à and stuff like that.
I used the urlencode() function and it works fine for those chars but it messes up the space :( it replaces the space with + instead of %20 or just leaving the freaking space alone...
I tried every function i could think of and NONE seemed to be replacing all chars correctly.
I do not want to have a huge str_replace function with every special char.... I'll always be missing some :(
Any advice ??
0
Comment
Question by:zero_kewl
5 Comments
 
LVL 13

Expert Comment

by:cLFlaVA
Comment Utility
have you tried urldecode() on the receiving page?
0
 
LVL 25

Accepted Solution

by:
Squinky earned 125 total points
Comment Utility
+ is quite normal for url encoding spaces. You shouldn't have a problem with it. If it's really a problem, apply urlencode, then replace '+' with '%20'. Should be all you need - + is not used for anything else in URLs.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now