Re: [xml] setting the default charset ?



On Sat, Jul 28, 2001 at 06:50:54PM +0200, Cyrille Chepelov wrote:
Actually, more probably a bug. Let's see :

  yes, I replied without enough context (bad connectivity).

      1) I  do a xmlSwitchEncoding(something like KOI8-R);    
      2) then I start parsing.
      3) xmlDetectCharEncoding sees <?xm
      4) it decides <?xm is UTF-8 encoding, so it switches to UTF-8, since
         UTF-8 is not NONE.   
      5) my setting of KOI8-R is forgotten.


  Right, enclosed patch should fix the problem,

Daniel

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

Attachment: patch.detect
Description: Text document



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