[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Recognising Unicode in a CSV to XML transform

Subject: Re: Recognising Unicode in a CSV to XML transform
From: "Marney Cotterill" <marney@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 May 2008 12:26:16 +1000
Re:  Recognising Unicode in a CSV to XML transform
> The unparsed-text() and unparsed-text-available() functions take a
> second argument for the encoding.

Brillant - Thanks Andrew.

I have added in the encoding argument and it can now recognise my CSV.

Lines I have amended:
        <xsl:when test="unparsed-text-available($pathToCSV, 'iso-8859-1')">
          <xsl:variable name="csv" select="unparsed-text($pathToCSV, 'iso-8859-
1')"/>
          
One last small problem - it is converting the i character to C). 
Am i using the correct encoding value? Or do I have to also insert a transform() 
somewhere to deal with this?

All your help has been fabulous!
Marney

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.