[Expat-bugs] [ expat-Bugs-1505207 ] Problem in Parsing using expat on Windows

SourceForge.net noreply at sourceforge.net
Wed Jul 5 15:20:33 CEST 2006


Bugs item #1505207, was opened at 2006-06-13 02:44
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1505207&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: www.libexpat.org
Group: Platform Specific
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Karl Waclawek (kwaclaw)
Summary: Problem in Parsing using expat on Windows

Initial Comment:
Hi,

I am using expat to parse xml file.
The parsing works fine in Unix but in windows I am
facing problems.

The start tag in case of Windows is only returning the
first character.

e.g.
if the tag is like
<property name="name" />
in the Handler for start tag, only the first character
p from "property" is returned.
I am linking with static library libexpatwMT.lib and
have also defined XML_STATIC.
Please let me know if i am doing anything wrong.

Expat Version: 1.95.8

Thanks in advance,
Asif Iqbal


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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2006-07-05 09:20

Message:
Logged In: YES 
user_id=290026

As Fred already said on another issue, this is an FAQ, not a
bug report. Closing this issue.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2006-06-13 09:11

Message:
Logged In: YES 
user_id=290026

On Windows, libexpatw... returns characters in UTF-16
encoding, libexpat... returns them in UTF-8 encoding.

On Unix, UTF-8 is the standard encoding, on Windows it is
UTF-16. Just treat the text as UTF-16, and you should be fine.

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

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


More information about the Expat-bugs mailing list