alacritty: ISO-8859-1 encoded characters not showing up in the output

System

OS: Linux Version: 0.4.1 Arch Linux, KDE + i3

Behaviour in Konsole with encoding set to UTF-8

$ php -a  
Interactive shell

php > echo chr(196);
�

Performing the above PHP command with encoding set to ISO-8859-1 yields the following:

php > echo chr(196);
Ä

Behaviour in alacritty

php > echo chr(196);

php >

I was troubleshooting an encoding error and found out that I was mislead by alacritty swallowing some characters that Konsole doesn’t hide.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

After some discussion on IRC we decided to close this issue, since it’s not something desired and users should use UTF-8 encoding for most things this days. Some terminals doesn’t even accept en_US.ISO-8859-1 as locale and just crash, etc.

Could you elaborate on how to repro this issue with php? Like I don’t really get what should I do to get alacritty behavior here(I don’t know any PHP at all, so you should give me detailed instructions).

For me output looked like that in alacritty

php -a
Interactive shell

php > echo chr(196);
�

I’ve also tried python and the output was the following

~ ➜ python
Python 3.8.1 (default, Jan  8 2020, 23:09:20)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> chr(196)
'Ä'