Re: [xsl] Recognising Unicode in a CSV to XML transform

Subject: Re: [xsl] Recognising Unicode in a CSV to XML transform
From: "Marney Cotterill" <marney@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 May 2008 12:26:16 +1000
> 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