Locales UTF-8 some problem

Having issues with your DietPi installation, or, found a bug? Post it here.
wassereimer
Posts: 5
Joined: Sat May 16, 2020 2:18 pm

Locales UTF-8 some problem

Post by wassereimer »

Hi,

i have the problem that some characters are not displayed correctly. In nano it´s "last word" and "next word". Also when i paste this "↳" in the console i just get a square.

My RPI4 runs the latest DeitPi version headless and i use Putty (set to UTF-8) on Windows 10.

These are my locales:

Code: Select all

LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8
What is the problem in my case? Can anybody help?

Thanks for any help and suggestion.
User avatar
trendy
Posts: 133
Joined: Tue Feb 25, 2020 2:54 pm

Re: Locales UTF-8 some problem

Post by trendy »

I pasted ↳ in securecrt and worked fine.
I use these locale

Code: Select all

LANG=en_GB.utf8
LANGUAGE=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC=el_GR.utf8
LC_TIME=el_GR.utf8
LC_COLLATE=C
LC_MONETARY=el_GR.utf8
LC_MESSAGES="en_GB.utf8"
LC_PAPER=el_GR.utf8
LC_NAME=el_GR.utf8
LC_ADDRESS=el_GR.utf8
LC_TELEPHONE=el_GR.utf8
LC_MEASUREMENT=el_GR.utf8
LC_IDENTIFICATION=el_GR.utf8
LC_ALL=
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Locales UTF-8 some problem

Post by Joulinar »

for me it looks like this and all working fine, as well I'm using putty with default settings

Code: Select all

root@DietPi4:~# locale
LANG=
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8
root@DietPi4:~#
As well I found this entry on the web, offering quite some options to work around incorrect displayed characters

https://serverfault.com/questions/47592 ... characters
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wassereimer
Posts: 5
Joined: Sat May 16, 2020 2:18 pm

Re: Locales UTF-8 some problem

Post by wassereimer »

First thank you for the replys. :)

I tried connecting with the Windows Powershell, just to make sure that it´s not Putty´s fault, but there i have the same problem.

@Joulinar I checked the link and my settings already match the mentioned ones.

I want to clearify that not all is garbage but in a few spots i have a problems. So it must be specific characters that not work. As the mentioned one in the first post.

I also tried reconfiguring the locales directly and in the dietpi-config but nothing changed.
wassereimer
Posts: 5
Joined: Sat May 16, 2020 2:18 pm

Re: Locales UTF-8 some problem

Post by wassereimer »

Anyone an idea?

I had a last one: Which font do you use where the mentioned character works?
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Locales UTF-8 some problem

Post by Joulinar »

Do you mean the font settings in Putty client?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wassereimer
Posts: 5
Joined: Sat May 16, 2020 2:18 pm

Re: Locales UTF-8 some problem

Post by wassereimer »

Correct. Mine is set like this:

Image

And the Translation is set like this:

Image
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Locales UTF-8 some problem

Post by Joulinar »

Ok let me check once I'm back home. Currently I'm out due to the public holiday we have ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Locales UTF-8 some problem

Post by Joulinar »

my putty settings are same as yours
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wassereimer
Posts: 5
Joined: Sat May 16, 2020 2:18 pm

Re: Locales UTF-8 some problem

Post by wassereimer »

Thank you for the information. I just tested it on my Android phone using JuiceSSH. It worked. Now i'm confused and also it´s clear that it doesn`'t seem to be the DietPi. But what can it bee if Putty is set up correctly? Any ideas?
Post Reply