Bugs item #1780431, was opened at 2007-08-23 09:10
Message generated for change (Comment added) made by pmarcu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1780431&group_id=105970
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: extensions
Group: v3.0
>Status: Pending
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: John Hancock (jhancock93)
Assigned to: pmarcu (pmarcu)
Summary: XmlFile action does not work with utf-16 encoded XML
Initial Comment:
A util:XmlFile action fails on an XML with utf-16 encoding with the following
error:
ExecXmlFile: Error 0x8007006e: failed to load XML file:
C:\<MyDirectory>\Config.xml
Sample component:
<Component Id="ConfigFile" Guid="YOUR-GUID-HERE" DiskId="1">
<File Id="Config.xml" Name="Config.xml" ReadOnly="no" Vital="yes"
KeyPath="yes" />
<util:XmlFile Id ="Config_DBName" File="[INSTALLLOCATION]Config.xml"
Action="setValue" ElementPath="//Config/DBName" Value="[DB_NAME]"/>
</Component>
Sample Config.xml:
<?xml version="1.0" encoding="utf-16"?>
<Config>
<DBName>DatabaseName</DBName>
</Config>
If the encoding in Config.xml is changed to "utf-8", then the XmlFile action
succeeds.
----------------------------------------------------------------------
>Comment By: pmarcu (pmarcu)
Date: 2007-10-19 14:22
Message:
Logged In: YES
user_id=1612676
Originator: NO
The XmlFile action does support both utf-8 and utf-16 encoded XML. This
error is because the encoding in the file is labeled as "utf-16" in the
"<?xml>" tag, but the file isnt saved in a utf-16 encoding. The same error
happens if the "<?xml>" tag says "utf-8" and the file is saved in "utf-16"
encoding.
Because of this, I believe the behavior is by design.
----------------------------------------------------------------------
Comment By: John Hancock (jhancock93)
Date: 2007-08-23 09:12
Message:
Logged In: YES
user_id=1226005
Originator: YES
More info: the installer was being run on a Windows Server 2003 machine
with Service Pack 1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1780431&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs