Unsupported Format Character '&' (0x26)

Andrew Evans randrange at gmail.com
Wed Aug 18 19:55:20 EDT 2010


nvm I got it by adding s and d respectively after each value eg %(query)s

thank you all

On Wed, Aug 18, 2010 at 4:35 PM, Andrew Evans <randrange at gmail.com> wrote:

> I get an error message "Unsupported Format Character '&' (0x26)" I narrowed
> it down to these two variables
>
> any idea how to fix it?
>
>   SEARCH_URL_0 = "
> http://search.yahoo.com/search;_ylt=A0oGdEf1XGxMJRoAUdml87UF;_ylc=X1MDMjE0MjQ3ODk0OARfcgMyBGZyA3NmcARuX2dwcwMxMARvcmlnaW4Dc3ljBHF1ZXJ5A3Rlc3QEc2FvAzE-?p=%(query)&fr=sfp&fr2=&iscqry=<http://search.yahoo.com/search;_ylt=A0oGdEf1XGxMJRoAUdml87UF;_ylc=X1MDMjE0MjQ3ODk0OARfcgMyBGZyA3NmcARuX2dwcwMxMARvcmlnaW4Dc3ljBHF1ZXJ5A3Rlc3QEc2FvAzE-?p=%%28query%29&fr=sfp&fr2=&iscqry=>
> "
>     NEXT_PAGE_0 = "
> http://search.yahoo.com/search;_ylt=A0oGdEEMXWxMnBAAiWhXNyoA?p=%(query)&fr=sfp&xargs=12KPjg1qNyy4-MkfqnfKqLCLLAhlMFta2E&pstart=%(start)&b=11<http://search.yahoo.com/search;_ylt=A0oGdEEMXWxMnBAAiWhXNyoA?p=%%28query%29&fr=sfp&xargs=12KPjg1qNyy4-MkfqnfKqLCLLAhlMFta2E&pstart=%%28start%29&b=11>
> "
>
>
>
> Not sure why its doing it the value in parenthesis should work %(query) etc
>
> Any ideas cheeers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100818/d69af8a2/attachment.html>


More information about the Python-list mailing list