Solved

special chars in url

Posted on 2004-09-08
5
384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 13

Expert Comment

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

Accepted Solution

by:
Marcus Bointon earned 125 total points
ID: 12014847
+ 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

617 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