Solved

special chars in url

Posted on 2004-09-08
5
382 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

749 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