Problem with Spanish language

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Dopoulo
Posts: 4
Joined: Fri Aug 28, 2020 11:22 am

Problem with Spanish language

Post by Dopoulo »

Hi all.
I'm a spanish user and I'm new with DietPi. I hope I can express myself correctly
I've been with Raspbian at least two years.
The first issue i've encountered is set to spanish language. I use dietpi-config and select es_ES.UTF-8, but I can't manage files with Spanish characteres like ñ or "tilde".
I haven't this problem with Raspbian

The command "locale" un DietPi returns:

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

In Raspbian, "locale" returns:
pi@raspberrypi:~ $ locale
LANG=es_ES.UTF-8
LANGUAGE=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=es_ES.UTF-8

As you can see, the first two lines are differents in DietPi and Raspbian.

I Hope you can help me
Thanks!
User avatar
Joulinar
Posts: 2281
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with Spanish language

Post by Joulinar »

Hi,

many thanks for your report. Pls can you try to set locals again? Usually LANG should be eu_ES.UTF-8 and not es_ES@euro

dietpi-config > 5 - Language/Regional Options > Locale

It was set correctly on my test system

Code: Select all

root@DietPi3:~# locale
LANG=es_ES.UTF-8
Pls don't forget to set correct Keyboard as well, if you have a phys keyboard attached.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Dopoulo
Posts: 4
Joined: Fri Aug 28, 2020 11:22 am

Re: Problem with Spanish language

Post by Dopoulo »

Joulinar wrote: Fri Aug 28, 2020 1:53 pm Hi,

many thanks for your report. Pls can you try to set locals again? Usually LANG should be eu_ES.UTF-8 and not es_ES@euro

dietpi-config > 5 - Language/Regional Options > Locale

It was set correctly on my test system

Code: Select all

root@DietPi3:~# locale
LANG=es_ES.UTF-8
Pls don't forget to set correct Keyboard as well, if you have a phys keyboard attached.
Thanks for the reply.
I have setted locale eu_ES.UTF-8, but the problem persists.
Now, "locale" returns:

root@DietPi:~# locale LANG=es_ES@euro
LANGUAGE=
LC_CTYPE="eu_ES.UTF-8"
LC_NUMERIC="eu_ES.UTF-8"
LC_TIME="eu_ES.UTF-8"
LC_COLLATE="eu_ES.UTF-8"
LC_MONETARY="eu_ES.UTF-8"
LC_MESSAGES="eu_ES.UTF-8"
LC_PAPER="eu_ES.UTF-8"
LC_NAME="eu_ES.UTF-8"
LC_ADDRESS="eu_ES.UTF-8"
LC_TELEPHONE="eu_ES.UTF-8"
LC_MEASUREMENT="eu_ES.UTF-8"
LC_IDENTIFICATION="eu_ES.UTF-8"
LC_ALL=eu_ES.UTF-8

As you see, the first two lines remain the same
User avatar
Joulinar
Posts: 2281
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with Spanish language

Post by Joulinar »

strange that it still gives LANG=es_ES@euro. Maybe @MichaIng has an idea
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Dopoulo
Posts: 4
Joined: Fri Aug 28, 2020 11:22 am

Re: Problem with Spanish language

Post by Dopoulo »

Joulinar wrote: Fri Aug 28, 2020 1:53 pm Hi,

many thanks for your report. Pls can you try to set locals again? Usually LANG should be eu_ES.UTF-8 and not es_ES@euro

dietpi-config > 5 - Language/Regional Options > Locale

It was set correctly on my test system

Code: Select all

root@DietPi3:~# locale
LANG=es_ES.UTF-8
Pls don't forget to set correct Keyboard as well, if you have a phys keyboard attached.
Sorry but I think that eu_ES is "Euskera" (Basque), not Spanish. Now my menus are in Euskera. I have setted locale es_ES again.
User avatar
Joulinar
Posts: 2281
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with Spanish language

Post by Joulinar »

Yeah small difference. But I guess your issue still persists
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2323
Joined: Sat Nov 18, 2017 6:21 pm

Re: Problem with Spanish language

Post by MichaIng »

The first two lines btw don't play a role. LANGUAGE is a rarely used fallback and LC_ALL is an override for all other LC_ variables, hence we set only this. With v6.32 btw LANG will be set as well since it might be used by 3rd party tools to estimate the active locale, but actually it should not have any effect when LC_ALL is set.
Dopoulo
Posts: 4
Joined: Fri Aug 28, 2020 11:22 am

Re: Problem with Spanish language

Post by Dopoulo »

MichaIng wrote: Fri Aug 28, 2020 6:58 pm The first two lines btw don't play a role. LANGUAGE is a rarely used fallback and LC_ALL is an override for all other LC_ variables, hence we set only this. With v6.32 btw LANG will be set as well since it might be used by 3rd party tools to estimate the active locale, but actually it should not have any effect when LC_ALL is set.
Than you!
I've been reading this document:
https://wiki.debian.org/es/Locale
And now, i know more about locales.
I've reinstalled DietPi and Raspbian (the new one), i've configures the locales un both SO, but the results are the same
Spanish characteres not working in DietPi, but working in Raspbian.

Any idea? Thanks you very much
User avatar
MichaIng
Site Admin
Posts: 2323
Joined: Sat Nov 18, 2017 6:21 pm

Re: Problem with Spanish language

Post by MichaIng »

Is this an issue on the local console only (i.e. monitor and keyboard directly attached to the Pi) or as well on SSH?
In case of local console only, probably reconfiguring it might help:

Code: Select all

dpkg-reconfigure console-setup
I just recently recognised that not only the locale is relevant, but also the capability of the console to show certain characters, also related to the font that is used. I.e. if the console is not configured to show UTF-8, the UTF-8 locale results in UTF-8 character being shown in a broken way. Probably its the same with those Spanish characters.
Post Reply