encoding problem

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
sbutt
Forum Newbie
Posts: 11
Joined: Mon Jun 09, 2008 5:59 am

encoding problem

Post by sbutt »

Hi All,
I have a link/url:

Code: Select all

http://link.jubii.dk/sgo/l_wres/http:// ... /L%C3%B6we
when clicked yields

Code: Select all

http://de.wikipedia.org/wiki/L%C3%83%C2%B6we
, where as it should yield *http://de.wikipedia.org/wiki/L%C3%B6we*.

I'm not doing any url decoding. Could anybody help?

Thanks.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: encoding problem

Post by jaoudestudios »

you have http:// twice in the link! :)
sbutt
Forum Newbie
Posts: 11
Joined: Mon Jun 09, 2008 5:59 am

Re: encoding problem

Post by sbutt »

Code: Select all

http://link.jubii.dk/sgo/l_wres/
is just a redirection link, so the complete link works it's just that the encoding gives a problem.
dml
Forum Contributor
Posts: 133
Joined: Sat Jan 26, 2008 2:20 pm

Re: encoding problem

Post by dml »

The redirector isn't redirecting to exactly the same link it was given.

Code: Select all

 
> lynx -mime_header 'http://link.jubii.dk/sgo/l_wres/http://de.wikipedia.org/wiki/L%C3%B6we' 
HTTP/1.1 302 Found
Connection: close
Date: Tue, 29 Jul 2008 11:50:27 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location: http://de.wikipedia.org/wiki/L%c3%83%c2%b6we
Cache-Control: private
Content-Type: text/html; charset=iso-8859-1
Content-Length: 161
 
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='http://de.wikipedia.org/wiki/L%c3%83%c2%b6we'>here</a>.</h2>
</body></html>
 
 
 
Post Reply