[Embedded Linux] Why do unicode characters not work?

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[Embedded Linux] Why do unicode characters not work?

Post 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"
:idea: Please read the FAQ and How to Request Help.
Post Reply