Re: [xml] transform



On Mon, 2003-03-10 at 11:02, rc wrote:
Hi,
How to transform xml string to string with particular encoding ?
(é -> &eacute)

I'm not sure I understand the question.

Internally, libxml uses UTF-8. If a file is in a different encoding and
that encoding is properly declared, libxml will do the right thing in
translating to UTF-8 when it parses the document.

On the output end, you have to explicity tell libxml the encoding you
want.

There's an example of how to do all this here:
http://www.xmlsoft.org/tutorial/ar01s08.html
and Daniel's explanation of encoding issues here:
http://www.xmlsoft.org/encoding.html

Cheers,
John
-- 
John Fleck
jfleck inkstain net (h) jfleck abqjournal com (w)
http://www.inkstain.net http://www.abqjournal.com

"Sometimes, a diner is all about the mac and cheese." 
  - Zippy the Pinhead




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