Missing Character Encoding After Upgrade to v 7.6.2

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
quidagis
Posts: 2
Joined: Mon Sep 20, 2021 4:02 am

Missing Character Encoding After Upgrade to v 7.6.2

Post by quidagis »

Hi All,

Running Dietpi Version 7.6.2 on an x86_64 Architecture Toshiba.

Prior to the Upgrade over the weekend from v7.5.2 > v7.6.2 there has been no issue with encodings at all.

Now there is some oddities. Most normal words & numbers display the correct Alphanum (Upper & Lower). However any stylising that requires Special Character such as the Dietpi Login Screen or Menu Options in `dietpi-config` or `dietpi-banner` have issues.

Please see below:
Dietpi_x86_64_Character_Weirdness_2021-09-20_14-49.png
Thank you, QA.
User avatar
MichaIng
Site Admin
Posts: 3350
Joined: Sat Nov 18, 2017 6:21 pm

Re: Missing Character Encoding After Upgrade to v 7.6.2

Post by MichaIng »

Hi, many thanks for your report.

Is this on a local console or terminal emulator or SSH? Can you check the following:

Code: Select all

# The currently applied locales incl. charmaps
locale
# All available/compiled locales incl. charmaps
locale -a
quidagis
Posts: 2
Joined: Mon Sep 20, 2021 4:02 am

Re: Missing Character Encoding After Upgrade to v 7.6.2

Post by quidagis »

Thank you for the reply, details as requested.

Code: Select all

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

Code: Select all

$ locale -a
C
C.utf8
C.UTF-8
en_NZ.utf8
POSIX
I did note that when I used VNC Client/Server to access this machine, there was *no* encoding issues. I did wonder if I have messed up the default ~/.bashrc for this `DietPi` machine.

N.B. The machine in question is using the DietPi x86_64 port.
User avatar
MichaIng
Site Admin
Posts: 3350
Joined: Sat Nov 18, 2017 6:21 pm

Re: Missing Character Encoding After Upgrade to v 7.6.2

Post by MichaIng »

So the locales are there and applied correctly. You ran those commands from the same terminal/console/emulator where the whiptail menus/banner looks strange? A more direct test:

Code: Select all

G_WHIP_MSG test
~/.bashrc is not changed/set by DietPi but left the Debian default. What is changed is /etc/bash.bashrc to load /etc/bashrc.d/ contained .sh and .bash files. DietPi scripts internally force C.UTF-8, e.g. when the banner is called via:

Code: Select all

/boot/dietpi/dietpi-banner 1
What do you mean by "using the DietPi x86_64 port"? Is this on a locally attached screen or SSH client or desktop terminal emulator?
Post Reply