Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

special chars in url

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
zero_kewl
Asked:
zero_kewl
1 Solution
 
cLFlaVACommented:
have you tried urldecode() on the receiving page?
0
 
Marcus BointonCommented:
+ 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now