Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


TransformXML files stored as USC-2 rather than UTF-8

From: Nick@-----------.---------.---
To: NULL
Date: 9/11/2006 10:38:00 PM

I am trying to export tables in access to transformed XML.  I am using

Application.ExportXML

followed by 

Application.TransformXML

The file produced from export is UTF-8 Cookie, but when I transform it with 
Application.TransformXML  with a style sheet that starts with the following I 
get a USC-2 file instead of the required UTF-8 file. 

<?xml version="1.0" encoding="UTF-8"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">
<xsl:output method="xml" encoding="utf-8" media-type="text/xml" indent="yes"/>

I am determining the encoding of the file from a text editor.

I have tried using MSXML2 and XMLWriter

    Dim XMLDoc As MSXML2.DOMDocument
    Dim XSLDoc As MSXML2.FreeThreadedDOMDocument
    Dim XSLProcessor As MSXML2.IXSLProcessor
Dim Str = New Stream

to set the encoding but they all require a stream data type to read the file 
that I do not seem to be able to access in the VBA access. 

All the documentation 

1) Set the encoding for TransformXML
2) Set the default encoding to UTF-8
3) How to use streaming in VBA
4) Any other ideas?




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent