Re: Are there question marks not allowed in href?

Hi Krzysztof,

the question marks are not the problem, but you must encode ALL ampersants, :

<a
href="http://lipka.desy.de/S1.xhtml?format=png & a m p ; resolution=320 & a m p ; 56=18670 & a m p ; 56=18651 & a m p ; 56=18652">
SomeLink</a>

Maybe you habe to encode it twice, if it is part of a value: & -> & a m p ; a m p ;

....& a m p ; resolution=310 & a m p ; a m p ; 56

(I've included some spaces, otherwise mail systems might decode the ampersant encodings)

regards
Kurt Riede

Krzysztof Nowak <knowak@mail.desy.de> schrieb am 03.09.04 09:11:11:


I'm developing simple xml code. I know that my question is not really
releted to python (at least I'm using pythons twisted.web to write it),
but please, give me simple answer. I have noticed that xml parser is angry
when he is founds this kind of line:

<a
href="http://lipka.desy.de/S1.xhtml?format=png&resolution=320&56=18670&a
mp;56=18651&56=18652">
SomeLink</a>

I'm think its becouse of question marks. I have menaged to escape the
ampersand but found not answer how to smuggle question mark. Could anybody
help me? I'm shure there's a way to make something like this...

Received on Friday, 3 September 2004 07:28:30 UTC