November 22, 2024, 04:25:30 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: BASH, UTF-8 and portability  (Read 8671 times)

Offline Provola

  • New Member
  • Posts: 1
BASH, UTF-8 and portability
« 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