Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Development & Programming => Topic started by: Provola on October 13, 2004, 01:35:17 PM

Title: BASH, UTF-8 and portability
Post by: Provola on October 13, 2004, 01:35:17 PM
Hello,
I'm writing an «interactive» bash script that does not contain any not-ascii (not-English) characters, but that uses external text files containing translations of the script answers into languages other than English. I like to encode every file using UTF-8 to avoid any problem with «every» language of the world, but different users use different locale settings (for example, I'm using ISO-8859-15 actually). How can my script tell the terminal to display UTF-8 files correctly? Or, if that were impossible, what could I do? Do you have different and better solutions? Thanks.

Alessandro