This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unicode problem (I think)

Tags: None
(comma "," separated)
j12t
Registered Member
Posts
1
Karma
0

Unicode problem (I think)

Wed Jun 24, 2015 10:48 pm
Code: Select all
systemctl status something.service
produces an unprintable character (well, something is printed, but it's not pretty) in konsole if /etc/locale.conf has this content:
Code: Select all
LANG=en_US.utf8
If I remove /etc/locale.conf, reboot, the same systemctl command produces an ASCII asterisk in the same place. (locale says it's C now.)

It seems that systemctl correctly picks up the locale, decides to emit UTF-8, but that konsole somehow doesn't want to render this.

What am I doing wrong?

Thanks,


Johannes.

Addition: Here are the emitted bytes in the two cases (and LANG=C makes the invocation easier):
Code: Select all
$ systemctl status systemd-networkd | od -xc
0000000    97e2    208f    7973    7473    6d65    2d64    656e    7774
        342 227 217       s   y   s   t   e   m   d   -   n   e   t   w
$ LANG=C systemctl status systemd-networkd | od -xc
0000000    202a    7973    7473    6d65    2d64    656e    7774    726f
          *       s   y   s   t   e   m   d   -   n   e   t   w   o   r

So in the ASCII case, we get 2a 20 (asterisk, blank), and in the UTF8 case, we get e2 97 8f 20 (black circle, blank), which makes the display be unhappy. Here's a screen shot: http://upon2020.com/public/konsole.png
mareks
Registered Member
Posts
1
Karma
0

Re: Unicode problem (I think)  Topic is solved

Wed Sep 06, 2017 7:32 am
This post is a bit old, but to help people finding it, I had the same issue and the solution is:

[Konsole] right-click > Edit Current Profile... > Advanced > Default Character Encoding: > [Select] UTF-8

:)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]