Page 1 of 1

[Embedded Linux] Why do unicode characters not work?

Posted: 06 Sep 2020, 04:26
by rednoah
Q: I'm running FileBot on a Linux machine and non-ASCII characters get all messed up. Why do unicode characters not work?

On some machines the locale is not set up. You'll need to tell Java what charset filenames are encoded with by setting the environment variable LANG. If you get an InvalidPathException about unmappable characters then it could very well be because LANG is not set up correctly.

Code: Select all

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"