[SOLVED] Shared folder config with latin character

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
ashyni
Posts: 2
Joined: Thu Jan 21, 2016 2:29 am

[SOLVED] Shared folder config with latin character

Post by ashyni »

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

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.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Shared folder problem

Post by Nadahar »

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/
ashyni
Posts: 2
Joined: Thu Jan 21, 2016 2:29 am

Re: Shared folder problem

Post by ashyni »

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/
Post Reply