Re: Creating Japanese Document in memory

"H.Ozawa" wrote:
> 
> Most parsers could handle XML document files creatED externally.
> The problem comes when I try to create a XML document directly
> (ie. no external file) in memory. I'm creating XML documents dynamically
> from form entries and from database query results.

Tcl does a pretty good job of handling character encodings.

With TclDOM, documents in memory are stored as UTF-8 (whether
created from scratch in memory or parsed from XML).  In Tcl you
can serialize the document as a string.  If you are writing
the XML to a file you have complete control over the encoding
of the output stream, using standard Tcl channel commands 
(Tcl uses "channels" rather than "file descriptors" to account 
for platform differences).

Hope that helps,
Steve Ball

-- 
Steve Ball            |   Swish XML Editor    | Training & Seminars
Zveno Pty Ltd         |   Web Tcl Complete    |      XML XSL
http://www.zveno.com/ |    TclXML TclDOM      | Tcl, Web Development
Steve.Ball@zveno.com  +-----------------------+---------------------
Ph. +61 2 6242 4099   | Mobile (0413) 594 462 | Fax +61 2 6242 4099

Received on Wednesday, 5 January 2000 00:49:36 UTC