Re: [xml] Question about xmlOutputBufferWrite



On Mon, May 27, 2002 at 01:40:03PM +0400, Konstantin Shepelin wrote:
String from which DomDocument has been created contain chars from
windows-1251 coning.This string begins from "<?xml version="1.0"
encoding="windows-1251"?><root><![CDATA[" after placed CDATA from attached
file it contain  HTML page, "]]></root>";

DomDocument successfully has been created. I assume that string successfully
converted from windows-1251 to UTF-8 and object has been created.

  libxml requires those string to be converted to UTF8 *before* calling the
API. Please read the documentation !
     http://xmlsoft.org/encoding.html

  I have no idea of the processing being done in the PHP layers.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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