Urlencode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Urlencode

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

google uses utf-8, you likely aren't, or need to use a utf-8 translation..
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Ok then i just str_replace them since i hate all charset-issues.
Post Reply