onsdag 03 januari 2007 18:14 skrev Alfredo Cole:
> Yes. It has a lot of non ASCII characters since text messages are
> written in Spanish. And there are over 400 source files in this
> project. Is the solution to go over each one and change the text
> using an editor and present coding? I am using LANG=es_ES.UTF-8
> coding, whereas under SUSE 9.3 I had LANG=es_ES only. There must be
> an easier way.
>

You can either switch to ISO-8859-1 (or maybe ISO-8859-15 for Euro support) or 
convert all files (and file names!) to UTF-8.

To switch to ISO-8859-1, put the line

export LANG=es_ES.ISO-8859-1

in your ~/.profile . Log out, log in, test. Alternatively, you might want to 
switch your system default to ISO-8859-1. Edit /etc/sysconfig/language and 
set RC_LANG to es_ES.ISO-8859-1. Reboot. (You can edit this value via 
Yast->System->Configuration editor->System->Environment->Language->RC_LANG.)


To convert your files to UTF-8, use "convmv" to rename files and "uniconv" to 
convert to contents of the files. NB! Only use uniconv on pure text files!

convmv is found in the package "convmv" and uniconv in the package "yudit".

/Lennart

SuSE switched the default to UTF-8 in 10.0, I believe.
-- 
!++
! Lennart Börjeson, Cinnober Financial Technology AB
! Industrigatan 2A, S-112 46  STOCKHOLM
! Sverige/Sweden/Schweden/Suède
! phone:+46-8-50304717 gsm:+46-70-3394717 fax:+46-8-50304701
!--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to