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
Shendemiar
Forum Contributor
Posts: 404 Joined: Thu Jan 08, 2004 8:28 am
Post
by Shendemiar » Mon Feb 07, 2005 11:23 am
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?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Feb 07, 2005 11:37 am
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 » Mon Feb 07, 2005 12:13 pm
Ok then i just str_replace them since i hate all charset-issues.