View Full Version : SS 6.0.1: UTF-8 in file/directory name

Dolf Dijkstra
2005-04-04, 13:45
Hi Dan,

Yes, music folder is local on the linux box, where slim runs too.

Locale is set to:
[root@rio Various Artists]# su - slimserver
-bash-2.05b$ locale

Ls -lart says:
drwxr-xr-x 2 audio audio 4096 May 26 2004 Caf? Do Brazil

If I want to move (rename) the file (to test) and type mv Caf(tab to
complete) it becomes.
[audio@rio Various Artists]# mv Café\ Do\ Brazil/
Hmm... So bash can deal with it.

I did not move the dir to a new name.

I have set this in /etc/init.d/slimserver
start() {
echo -n "Starting SlimServer: "
export LC_CTYPE

Wiped the cache.

But the error stays in the logs. Browsing Music folder to Latin/Various
Artist/ also does not show Café Do Brazil.

After rename the dir to "Cafe Do Brazil" I could browse to this directory
with Browse Music folder. Before it was not showing up.

Also set export LC_CTYPE=en_US.ISO-8859-1 (to make sure it really get's
picked up) and started slimserver.pl from the command prompt, but the errors
stay in the log (not for Cafe Do Brazil anymore oc) after wiping the cache.

Starting slimserver (6.0.1) on XP and using the same music folder over samba
does not have these issues. All songs are found and correctly tagged.

Any other suggestions are welcome.


> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Dan Sully
> Sent: maandag 4 april 2005 21:08
> To: Slim Devices Discussion
> Subject: [slim] SS 6.0.1: UTF-8 in file/directory name
> * Dolf Dijkstra shaped the electrons to say...
> >utf8 "\xE9" does not map to Unicode at
> >/usr/local/slimserver/Slim/Formats/Parse.pm line 131.
> >[/music/test/own/Latin/Various Artists/Caf\xE9 Do
> Brazil/Marcos Valle -
> >A Vontage De Rever Voce 09.flac] does not exist or cannot be
> read: No
> >such file or directory at
> >/usr/local/slimserver/CPAN/Audio/FLAC/Header.pm line 59,
> <GEN6> line 6.
> ><similar lines reported often)
> >
> >I have unloaded most of my music via a samba3 share. On windows
> >explorer (on
> >XP) this directroty looks ok: Café Do Brazil (with the
> accented e). Linux ls
> >like it less, but I don't (didn't??) really care about what
> ls says because
> >5.4 did not have issues with these file/directory names.
> >
> >Please don't tell me that I need to rename all my
> directories :(. There
> >must but a silver bullit somewhere.
> Is your music on the Windows machine (via Samba) or local to
> the RH9 machine?
> What does your LC_CTYPE environment variable look like?
> I'm assuming it's: en_US.UTF-8 (or similar).
> Can you try setting it to:
> export LC_CTYPE=en_US.ISO-8859-1
> and rescanning?
> -D
> --
> They're techno trousers, ex-NASA, fantastic for walkies!