[Expat-bugs] [ expat-Bugs-730947 ] unknown encoding handler... bug? or i'm just stupid?

SourceForge.net noreply at sourceforge.net
Thu May 1 13:04:32 EDT 2003


Bugs item #730947, was opened at 2003-05-01 12:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=730947&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: unknown encoding handler... bug? or i'm just stupid?

Initial Comment:
i have  a simple written handler for windows-1250 
encoding like this (expat 1.95.5, win32):




int encoding_handler(void *data, const char *name, 
XML_Encoding *info)


{


  int i;


  if(strcmp(name,"windows-1250")!=0) return 0;




  for(i=0;i<256;i++) 


    info->map[i] = windows1250[i]; /* windows1250 
is windows-1250 to unicode mapping table */


  


  info->data = NULL; 


  info->convert = NULL;


  info->release = NULL;  




  return 1;


}




handler was set up using this code:


XML_SetUnknownEncodingHandler(parser,  
encoding_handler, NULL);




and when i try to parse this xml file:


<?xml version="1.0" encoding="windows-1250"?>




<document>


</document>




i get unknown encoding error. maybe i'm crazy but 
really need help (and no fourum exist, anyway:))


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=730947&group_id=10127



More information about the Expat-bugs mailing list