Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > accent in --stringparam (xsltproc)

Reply
Thread Tools

accent in --stringparam (xsltproc)

 
 
Ramon
Guest
Posts: n/a
 
      08-18-2006

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

--
Philippe Monroux
55.3W -21.5S
 
Reply With Quote
 
 
 
 
Soren Kuula
Guest
Posts: n/a
 
      08-19-2006
Ramon wrote:
> 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
 
Reply With Quote
 
 
 
 
Ramon
Guest
Posts: n/a
 
      08-19-2006
Le Sat, 19 Aug 2006 02:04:32 +0200,
Dans le forum comp.text.xml,
Soren Kuula a écrit :
> Ramon wrote:
>> 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.


OK thanks

--
Philippe Monroux
55.3W -21.5S
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Accent and Resource File (bis) Fabrice ASP .Net 0 01-21-2006 10:07 AM
Problem with accent in button control server Fabrice ASP .Net 1 01-20-2006 11:02 PM
Converting accent characters to html codes Alexandre Soares ASP .Net 1 09-01-2004 04:55 PM
StreamReader and Accent Stan Sainte-Rose ASP .Net 1 05-20-2004 07:47 AM
Accent in Oracle (with .net provider) steven@amazoncorp.com.br ASP .Net 0 11-28-2003 07:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57