![]() I guess screen controls that now, so a somewhat useful solution for screen users. But seems to kill the scroll bar in mrxvt. Now the accented ‘a’ is correct, but none of the other weird characters have been fixed, but at least now they only take up 1 space and are all replaced by a space or, most often, a question mark, so the formatting is better preserved. ![]() OK, now let’s cat the same file in mrxvt again: catted in mrxvt running screen mrxvtrc ends with this line, to run screen: : env LANG=en_AU screen ![]() Use screen to translate! $ sudo apt install screen What’s more, the special characters have messed with the spacing of the characters - it’s worse than if they were simply replaced by space or a box or something. Smart quotes, Greek, Wingdings, etc - very little has ‘worked’ here. The pound sterling sign worked, and plus/minus and degree, but even they are oddly spaced, presumably because of the byte-width of the characters in UTF-8. Basically, only the keyboard characters have worked. If I paste the same characters into an mrxvt window, I get this: catted in mrxvtĪnd here we see the non-UTF-8 terminal. I suspect if we dug in we’d find some systematic behaviour behind this. This matches the same characters as notepad++, including the smart quotes, but instead of putting empty boxes for Wingdings and Greek (and the arrow to the right), it has put seemingly random characters from elsewhere in the glyph space. I get this - much like notepad++: catted to the screen in mate-terminal I can paste the same characters out of Word (running in a VM) and into Vim running on mate-terminal. In notepad++, the Greek letters are missing, as is the arrow pointing right, the en rule and all the Wingdings. If I cut and paste it into notepad++ (still on Windows), I get this: Pasted into notepad++ Here’s a little document that needs UTF-8 (and then some) - generated using Word on Windows: The test file Can we make it play better with UTF-8 files, given it is not a UTF-8 application and most likely never will be?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |