You are not logged in.

#1 2016-02-14 16:44:05

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

[SOLVED] Folder and files with special characters

I cannot open folders with special characters and Dolphin displays ?  instead of the proper characters.
Even Amarok and Clementine cannot list nor play file with special characters (eg. Fabrizio De André - La Guerra di Piero is displayed in Dolphin as Fabrizio De Andr? - La Guerra di Piero).
I tried to edit /etc/locale.gen uncommenting the following lines and using locale-gen:

de_DE.UTF-8... done
de_DE.ISO-8859-1... done
en_US.UTF-8... done
en_US.ISO-8859-1... done
fr_FR.UTF-8... done
fr_FR.ISO-8859-1... done
it_IT.UTF-8... done
it_IT.ISO-8859-1... done

If I try to create a folder with a special character (eg. Novità) I get a question mark instead of the proper character (eg. Novit?).
I googled a lot but I didn't find any solution.
How can I set my system (Plasma) to make it read special characters?

Last edited by T84 (2016-02-15 16:08:34)

Offline

#2 2016-02-14 17:30:32

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

Have you created a system wide locale.conf?

https://wiki.archlinux.org/index.php/lo … the_locale

What's the output of

locale

Please use code tags in the future - thanks!

Last edited by ymihc (2016-02-14 17:35:39)

Offline

#3 2016-02-14 18:35:38

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

Yes, a wide locale.conf is present.

This is the locale output (sorry for previous missing tags):

LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Offline

#4 2016-02-14 18:38:19

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

Add your locale settings to the locale.conf like described in the wiki (which I have linked for you in my previous post). For example:

LANG=it_IT.UTF-8

or with

# localectl set-locale LANG=it_IT.UTF-8

You might have missed a step in the beginners' guide: https://wiki.archlinux.org/index.php/Be … ide#Locale

Edit: Adjusted it for Italy.

Last edited by ymihc (2016-02-14 18:48:32)

Offline

#5 2016-02-14 18:56:52

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

I've already tried both those steps but nothing changed and the locale output was the same.

Offline

#6 2016-02-14 18:58:33

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

With a reboot?

Offline

#7 2016-02-14 18:59:45

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

Yes, I always reboot after editing files.

Offline

#8 2016-02-14 19:29:51

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Folder and files with special characters

cat /etc/locale.conf

???

Offline

#9 2016-02-14 20:03:03

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

@ugjka:

What additional information do we get from

# cat /etc/locale.conf

compared to the

# locale

which I asked the thread starter a couple of posts ago?

If he really edited the locale.conf as he claimed, that should be fine too.

Last edited by ymihc (2016-02-14 20:06:50)

Offline

#10 2016-02-14 20:13:06

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Folder and files with special characters

@ymihc, simply sanity check.

I'm wondering whether locale can be set somewhere in $HOME like ~/.config/locale.conf or ~/.local/etc/locale.conf
I recommend checking those too

Offline

#11 2016-02-15 07:22:58

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

@ugjka: Thanks for the explanation. You're perfectly right, maybe there are conflicting or "local" per user locale settings.

@T84: Please post additionally the outputs of the files (if they exist) ugjka suggested and try to describe what you have done so far step by step as detailed as possible (fresh installation? did you stick to the beginners guide? any other configurations?) - that would help a lot.

Last edited by ymihc (2016-02-15 07:23:55)

Offline

#12 2016-02-15 08:56:00

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

Thanks for the replies.
My Linux box has been up since three months, so it's not a so fresh installation.
I tried to put copies of ocale.conf in ~/.config/locale.conf or ~/.local/etc/locale.conf but nothing changed.

cat /etc/locale.conf

returns

LANG=it_IT.UTF-8

but

locale

returns

LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Offline

#13 2016-02-15 09:16:41

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Folder and files with special characters

Are you running KDE?

Maybe this can help
https://userbase.kde.org/System_Settings/Locale

Offline

#14 2016-02-15 09:19:33

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

When I try

export LANG="it_IT.UTF-8"

I get  the following output for the running session but this does not affect the filenames reading/creation

LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

And when I reboot I get again

LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Last edited by T84 (2016-02-15 09:20:00)

Offline

#15 2016-02-15 09:24:16

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Folder and files with special characters

Create a new user, see whether the problem persists.

Offline

#16 2016-02-15 09:44:37

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Folder and files with special characters

Check

cat ~/.config/plasma-localerc

Offline

#17 2016-02-15 15:24:16

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

cat ~/.config/plasma-localerc

returns

[Formats]
LANG=C

[Translations]
LANGUAGE=en_US:de:fr:it

Last edited by T84 (2016-02-15 15:33:17)

Offline

#18 2016-02-15 15:31:50

ymihc
Member
Registered: 2016-02-03
Posts: 21

Re: [SOLVED] Folder and files with special characters

Try to add your preferred locale to ~/.config/plasma-localerc

[Formats]
LANG=it_IT.UTF-8

[Translations]
LANGUAGE=en_US:de:fr:it

or do it via the GUI like ugjka previously suggested with his link (KDEs System Settings/Locale).

Offline

#19 2016-02-15 15:34:14

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

I have to correct myself.
I tried again to login in with the previously created user and this time I'm able to create folders and file with special characters.
I wonder if I have to remove my user and start from scratch with the new one.

Offline

#20 2016-02-15 15:35:17

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [SOLVED] Folder and files with special characters

So you should have a switcher to change the language you prefer. First you need to set the default language by systemsettings5.
What says

$ pacman -Qs kde-l10n

do it good first, it will be faster than do it twice the saint wink

Offline

#21 2016-02-15 15:38:28

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

$ pacman -Qs kde-l10n

returns

local/kde-l10n-de 15.12.1-1
    German localization for KDE
local/kde-l10n-it 15.12.1-1
    Italian localization for KDE

Offline

#22 2016-02-15 16:08:20

T84
Member
From: Italy
Registered: 2012-03-12
Posts: 32

Re: [SOLVED] Folder and files with special characters

I don't know what really did the trick but now the problem is solved and I'm able to use special characters in folders and filenames.
I deeply thank you all for the support.

Offline

#23 2016-02-15 16:26:14

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [SOLVED] Folder and files with special characters

My ~/.config/plasma-localerc is

[Formats]
LANG=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
useDetailed=true

[Translations]
LANGUAGE=it

Then folders and files may have accented characters.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB