Re: [xml] Aliases for encodings

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Aug 22 2000 - 16:17:04 EDT


On Mon, Aug 21, 2000 at 10:30:11AM +0300, Vjacheslav Chekushin wrote:
>
> Hi,
> I plan to use the aliases for some encodings, supported by iconv.
> Is it the right(best?) way how to do it ?
>
> xmlCharEncodingHandlerPtr encHandler;
> encHandler = xmlFindCharEncodingHandler("CP1257");
> encHandler->name = xmlMemStrdup("WINDOWS-1257");
> xmlRegisterCharEncodingHandler(encHandler);
>
> Can You show the better way if it exists?

  It looks like it should work, however I'm a bit unsure about
possible errors if you reuse it or ipossible allocatio problem
once the encHandler get unregistered.

   try it, and report problems if any,

 Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 22 2000 - 13:43:11 EDT