[SOLVED] Shared folder config with latin character
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
[SOLVED] Shared folder config with latin character
Hi, i installed UMS 5.5.0 headless on my debian NAS, but i have a problem with my shared folders, is there a way to use "é" character ?
UMS.conf charset is : utf-8
UMS.conf charset is : utf-8
Code: Select all
folders = /mnt/storage/Vidéos/,/mnt/storage/Musique/,/mnt/storage/Images/
Code: Select all
DEBUG 2016-01-20 15:23:31.708 [main] Reading folders: "/mnt/storage/Vidéos/,/mnt/storage/Musique/,/mnt/storage/Images/" (default: "")
INFO 2016-01-20 15:23:31.708 [main] Checking shared folder: /mnt/storage/Vidéos/
WARN 2016-01-20 15:23:31.710 [main] The directory /mnt/storage/Vidéos/ does not exist. Please remove it from your Shared folders list on the Paramètres de Navigation/Partage tab
INFO 2016-01-20 15:23:31.710 [main] Checking shared folder: /mnt/storage/Musique/
INFO 2016-01-20 15:23:31.710 [main] Checking shared folder: /mnt/storage/Images/
Last edited by ashyni on Thu Jan 21, 2016 3:31 am, edited 1 time in total.
Re: Shared folder problem
Java properties files (as our config file is) doesn't support UTF-8, but is read as Latin-1. To specify unicode characters you need to use "\uxxxx". Try this instead:
Code: Select all
folders = /mnt/storage/Vid\u00e9os/,/mnt/storage/Musique/,/mnt/storage/Images/
Re: Shared folder problem
Working, Thanks
Code: Select all
DEBUG 2016-01-20 16:49:47.890 [main] Reading folders: "/mnt/storage/Vidéos/,/mnt/storage/Musique/,/mnt/storage/Images/" (default: "")
INFO 2016-01-20 16:49:47.891 [main] Checking shared folder: /mnt/storage/Vidéos/
INFO 2016-01-20 16:49:47.892 [main] Checking shared folder: /mnt/storage/Musique/
INFO 2016-01-20 16:49:47.892 [main] Checking shared folder: /mnt/storage/Images/