March 24, 2018, 05:57:29 PM

News : Linux Help Community Forum..

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

Offline Provola

  • New Member
  • Posts: 1
BASH, UTF-8 and portability
« on: October 13, 2004, 01:35:17 PM »
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.