Re: [xml] Finding the encoding of an xml documentj.



On 2/2/2012 12:17, John J. Boyer wrote:
How do I find the encoding of an xml document? My Braille transcription
software requires UTF-8.
What are you trying to do?

If you need to get parsed document encoding I guess it's stored in xmlDoc.encoding field and probably in parser context as well. If you want to guess what encoding your document is in before passing to parser - try xmlDetectCharEncoding().

Thanks,





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]