Page 1 of 1

Urlencode

Posted: Mon Feb 07, 2005 11:23 am
by Shendemiar
I'm trying to automaticly make a link to google search result.

Words i use for search have ä ö and å characters.

However urlencode and rawurlencode transmits the characters to different values than the google.

ä =

%C3%A4 in google

%E4 with urlencode (and raw...)

I could str_replace them, but i'd rather know why this is?

Posted: Mon Feb 07, 2005 11:37 am
by feyd
google uses utf-8, you likely aren't, or need to use a utf-8 translation..

Posted: Mon Feb 07, 2005 12:13 pm
by Shendemiar
Ok then i just str_replace them since i hate all charset-issues.