Re: URL encode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruno Santos wrote:
> Hello.
>
> Im having some trouble when getting a query from a $_GET method
>
> the problem is, when using $_GET, i get some charaters decoded as html
> entities.
>
> if i submit the word %sara% (example), is ok
> but, if i submi the word %carlos%, i get Êrlos, witch is the translation
> of html entity %ca

You probably *THINK* you are getting that, because when you print it out
in your browser as part of the URL, you print out:
&%carlos

Some really stupid browsers (Microsoft IE) will assume you forgot the ; at
the end of &%ca; and turn that into the html entity.

But that's just the browser being stupid, not your data being wrong.

Use "View Source" in your browser to see what's really in your output.

> how can i can resolve it ??
>
> ive tryed with htmlentities, urlencode, urldecode, etc...

Most likely, there is nothing to solve, and none of those are needed.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux