xsl-list
[Top] [All Lists]

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

2008-05-29 19:27:34

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 é character to é. 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--