I'm writing a cgi with python at the minute and I seem to be getting some very strange errors from the embedded html.
I get ValueErrors for unsupported format character ' " ' at index 266
I have checked through my code and find myself unable to see what could be causing this error, as there are no ' " ' out of place.
If you can help I would greatly appreciate it.
Thanks
What do you mean with embedded HTML? You're using ASP+Python and <% + %> tags? Or are you just using the print statement?
Could you also post some code fro your script where you get your error?
Yeah sorry about that, I'm using %s and the html is actually within a cgi script as a variable, which can then be printed and the %s variables be defined.
not really sure what could be causing the errors.
Thanks
I see the problem, you're using this code: 65%". Python thinks the % starts the format specifier, and then it reports " is an illegal format character. You should replace all % that are not used for formatting with %%.