[ expat-Bugs-480278 ] UTF-16 Unsupport?

noreply@sourceforge.net noreply@sourceforge.net
Sat Apr 20 06:21:03 2002


Bugs item #480278, was opened at 2001-11-09 20:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=480278&group_id=10127

Category: None
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: UTF-16 Unsupport?

Initial Comment:
Hi!
I did re-compile expat 1.95.2 with VC++ 6.0 to support
unicode characters.
And I wrote XML document encoding schema as UTF-16, 
but parser might generate following error message:

error code : 19
error text : encoding specified in XML declaration is 
incorrect.

What's wrong???

My test xml doc. ------------------------------

<?xml version="1.0" encoding="UTF-16"?>
<TEST>
  <ABCD>
    <A>This is a   test"</A>
  </ABCD>
</TEST>

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-04-20 09:20

Message:
Logged In: YES 
user_id=3066

Could not duplicate; is your file actually encoded in UTF-16?
Added a test in tests/runtests.c revision 1.12.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2001-11-11 22:59

Message:
Logged In: YES 
user_id=290026


Worked fine for me.
I pasted your text from above into Wordpad,
saved it as a Unicode Text file, and Expat
accepted it without problems.

Karl

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

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