Linux in General > Linux Development & Programming

BASH, UTF-8 and portability

(1/1)

Provola:
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

Navigation

[0] Message Index

Go to full version