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

"SourceForge.net" <[email protected]>
Newsgroups gmane.text.xml.expat.bugs
Message-ID <[email protected]>
Bugs item #730947, was opened at 2003-05-01 15:04
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=730947&group_id=10127

Category: None
Group: None
>Status: Closed
>Resolution: Rejected
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:))


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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2003-07-15 11:59

Message:
Logged In: YES 
user_id=290026

Closed due to lack of follow-up by submitter.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2003-05-01 22:29

Message:
Logged In: YES 
user_id=290026

How is your Expat compiled, for UTF-8 or for UTF-16 
(XML_UNICODE_WCHAR_T defined)?
Also, check if that file has been saved as "Unicode" 
in Windows (look at it with a hex editor).



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=730947&group_id=10127
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.