Unicode/UTF-8 confusion

Tom Stambaugh tms at zeetix.com
Sat Mar 15 13:54:35 EDT 2008


> Somehow I don't get what you are after.  The ' doesn't have to be escaped
> at all if " are used to delimit the string.  If ' are used as delimiters
> then \' is a correct escaping.  What is the problem with that!?

If I delimit the string with double quote, then I have to escape every
double quote in whatever I serialize. I'm moving strict html from the server
to the browser, and therefore the value of every tag attribute is delimited
by double quotes. That means that I'd have to escape every double quote, and
there are MANY more of them.

Thanks,
Tom






More information about the Python-list mailing list