accent in --stringparam (xsltproc)

R

Ramon

Hello,

How to pass parameter with acute accent to xsltproc ?

example : (été (french) = summer)

$ xsltproc --stringparam ch été fichier.xsl fichier.xml

It is written in the xsltproc man that the string --stringparam must
be in utf-8

But how to pass it ?

TYWM

OS : linux
 
S

Soren Kuula

Ramon said:
Hello,

How to pass parameter with acute accent to xsltproc ?

example : (été (french) = summer)

$ xsltproc --stringparam ch été fichier.xsl fichier.xml

It is written in the xsltproc man that the string --stringparam must
be in utf-8

But how to pass it ?

What is the encoding of the terminal window in which you run the thing?
I think the LANG env. var. specifies that, but I'm not too sure (that
penguin never really got serious about Unicode -- W****** is much better
npwadays).

Or, alternatively, try to write your string été into a file, and be sure
to save that in UTF-8 (encoding under Save As in GEdit, or CTRL-x
<RETURN> c utf-8 <RETURN> CTRL-x CTRL-w <RETURN> in EMACS; I am not
responsible if you break any fingers). Then, try cat the file -- if that
comes out OK, your terminal should use utf-8, and xsltproc should not
complain.

Soren
 
R

Ramon

Le Sat, 19 Aug 2006 02:04:32 +0200,
Dans le forum comp.text.xml,
Soren Kuula a écrit :
What is the encoding of the terminal window in which you run the thing?
I think the LANG env. var. specifies that, but I'm not too sure (that
penguin never really got serious about Unicode -- W****** is much better
npwadays).

Or, alternatively, try to write your string été into a file, and be sure
to save that in UTF-8 (encoding under Save As in GEdit, or CTRL-x
<RETURN> c utf-8 <RETURN> CTRL-x CTRL-w <RETURN> in EMACS; I am not
responsible if you break any fingers). Then, try cat the file -- if that
comes out OK, your terminal should use utf-8, and xsltproc should not
complain.

OK thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top