How to ask sax for the file encoding
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 4 10:57:54 EDT 2006
Edward K. Ream wrote:
> <?xml version="1.0" encoding="utf-8"?>
>
> so it would seem reasonable for sax to be able to return 'utf-8' somehow.
why? that's an encoding detail, and should be completely irrelevant for
your application.
> Am I missing something?
you're confusing artifacts of an external serialization format with the actual
data model. don't do that, if you can avoid it.
what's your use case ?
</F>
More information about the Python-list
mailing list