[Solved]I'm puzzled and bewildered... lazarus / 32-Linux ---------------------------------------------------------------------- cdbc · 2025-03-26 17:32 Hi edit: See last post for explanation & fix So, I'm fiddling with console & unicode in forked TTextCanvas code from @Warfley... Pretty nice  Now here's the completely 'Bonkers' situation, that I'm looking at: In KDE's Konsole it's working great =^ In XTerm ...NOT so much, have a 'looksee' at the attached pictures... What I don't understand is this: Standard codepage on Linux is UTF8, here too, so why the H*ll aren't the two different terminal-emulators agreeing?!? Any input on this is greatly appreciated... Regards Benny ---------------------------------------------------------------------- Thaddy · 2025-03-26 18:01 Benny, what does export tell you? (forgot the grep for it) Analize the export ---------------------------------------------------------------------- cdbc · 2025-03-26 18:25 Hi Thaddy Export tells me this:Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i declare -x BROWSER="/usr/bin/www-browser"declare -x CANBERRA_DRIVER="pulse"declare -x DBUS_SESSION_BUS_ADDRESS="unix:path= /tmp/dbus-9RsaFVTbRm,guid=bffe9c1144ca91d80662ea3767e17a57"declare -x DERBY_HOME="/usr/lib/jvm/jdk-15.0.2/db"declare -x DESKTOP_SESSION="/etc/X11/dm/Sessions/99Plasma"declare -x DESKTOP_STARTUP_ID="red;1742930837;545573;3153_TIME100734539"declare -x DISPLAY=":0"declare -x GCONF_TMPDIR="/tmp"declare -x GDM_LANG="en_GB.UTF-8"declare -x GIT_PAGER="less -FRS"declare -x GP_LANGUAGE="en"declare -x GTK2_RC_FILES="/etc/gtk- 2.0/gtkrc:/home/bc/.gtkrc-2.0:/home/bc/.config/gtkrc-2.0"declare -x GTK_OVERLAY_SCROLLING="0"declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home /bc/.gtkrc:/home/bc/.config/gtkrc"declare -x G_FILENAME_ENCODING="@locale"declare -x HISTCONTROL="ignoredups"declare -x HISTSIZE="1000"declare -x HOME="/home/bc"declare -x HOSTNAME="red"declare -x INPUTRC="/etc/inputrc"declare -x J2REDIR="/usr/lib/jvm/jdk-15.0.2"declare -x J2SDKDIR="/usr/lib/jvm/jdk-15.0.2"declare -x JAVA_HOME="/usr/lib/jvm/jdk-15.0.2"declare -x KDE_APPLICATIONS_AS_SCOPE="1"declare -x KDE_FULL_SESSION="true"declare -x KDE_SESSION_UID="1000"declare -x KDE_SESSION_VERSION="5"declare -x LANG="en_GB.UTF-8"declare -x LANGUAGE="en_GB:en"declare -x LC_ADDRESS="en_GB.UTF-8"declare -x LC_COLLATE="en_GB.UTF-8"declare -x LC_CTYPE="en_GB.UTF-8"declare -x LC_IDENTIFICATION="en_GB.UTF-8"declare -x LC_MEASUREMENT="da_DK.UTF-8"declare -x LC_MESSAGES="en_GB.UTF-8"declare -x LC_MONETARY="da_DK.UTF-8"declare -x LC_NAME="da_DK.UTF-8"declare -x LC_NUMERIC="da_DK.UTF-8"declare -x LC_PAPER="da_DK.UTF-8"declare -x LC_SOURCED="1"declare -x LC_TELEPHONE="da_DK.UTF-8"declare -x LC_TIME="da_DK.UTF-8"declare -x LESS="-MM"declare -x LESSCHARSET="utf-8"declare -x LESSKEY="/etc/.less"declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"declare -x LOGNAME="bc"declare -x MAIL="/var/spool/mail/bc"declare -x MDV_MENU_STYLE="discovery"declare -x MESA_SHADER_CACHE_DISABLE="1"declare -x META_CLASS="desktop"declare -x NLSPATH="/usr/share/locale/%l/%N"declare -x OLDPWD="/home/bc"declare -x PATH="/home/bc/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/us r/libexec:/usr/games:/usr/lib64/qt5/bin:/usr/lib64/qt6/bin:/usr/lib64/ qt4/bin:/usr/sbin:/sbin"declare -x PS1="\\u@\\h \\W\$(__git_ps1 \" [%s]\")\\\$ "declare -x PWD="/home/bc/tmp/nothing_fancy/console/boxdrawing/no-crt"declare -x PYTHONDONTWRITEBYTECODE="1"declare -x PYTHONSTARTUP="/etc/pythonrc.py"declare -x QML_DISABLE_DISK_CACHE="1"declare -x QT4DOCDIR="/usr/share/doc/qt4"declare -x QT5DOCDIR="/usr/share/doc/qt5"declare -x QT6DOCDIR="/usr/share/doc/qt6"declare -x QTDIR="/usr/lib64/qt4"declare -x QTDIR5="/usr/lib64/qt5"declare -x QTDIR6="/usr/lib64/qt6"declare -x QT_AUTO_SCREEN_SCALE_FACTOR="0"declare -x SESSION_MANAGER="local/red:@/tmp/.ICE-unix/3134,unix/red:/tmp/.ICE- unix/3134"declare -x SHELL="/bin/bash"declare -x SHLVL="1"declare -x SYSFONT="lat0-16"declare -x TERM="xterm"declare -x TERMINOLOGY="1"declare -x TERM_PROGRAM="terminology"declare -x TERM_PROGRAM_VERSION="1.8.1"declare -x TMP="/tmp/"declare -x TMPDIR="/tmp/"declare -x USER="bc"declare -x WINDOWID="41943042"declare -x XAUTHORITY="/home/bc/.Xauthority"declare -x XCURSOR_SIZE="24"declare -x XCURSOR_THEME="breeze_cursors"declare -x XDG_CONFIG_DIRS="/home/bc/.config/kdedefaults:/etc/xdg/discovery:/e tc/xdg"declare -x XDG_CURRENT_DESKTOP="KDE"declare -x XDG_RUNTIME_DIR="/var/run/user/1000"declare -x XDG_SEAT="seat0"declare -x XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"declare -x XDG_SESSION_CLASS="user"declare -x XDG_SESSION_COOKIE="red-1742830167.338924-254766390"declare -x XDG_SESSION_DESKTOP=""declare -x XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session1"declare -x XDG_SESSION_TYPE="x11"declare -x XDG_VTNR="8"declare -x XMODIFIERS="@im=none"declare -x XTERM_256_COLORS="1" I'll have to have a longer look, to see if something 'glares' at me...  Thanks for the tip mate =^ Regards Benny ---------------------------------------------------------------------- cdbc · 2025-03-27 10:08 Hi ...And there lies the damned dog buried: System Locale  Although being a Dane \o/ I utterly HATE Danish on my desktop!!!  Thus I've been running a 'bastard' system in English with just a few pinpointed Danish localisations - currency, numbers and clock etc... So, after sifting through the 'export's of my system, it suddenly hit me  :: English speaking have no real need for full UTF8 or Unicode, i.e.: no æøå ÆØÅ Ü Ö Ä ö ü ä Ñ ñ etc... So apps sometimes defaults to CP 8859-1 which maps pretty close to utf8 & ascii -- Close, but no cigar! Why the box-characters fall into that category, I dunno! I thought to myself, WTH I'll give it a shot and install Danish locale on my system   ...and Lo and Behold => NOW IT WORKS FLAWLESSLY  It turns out that 'Konsole' doesn't give a flying F*CK about system locale and just use UTF8 / Unicode, period. Whereas the other terminal emulators are staying loyal / true to the system locale, with a potential fallback to 8859-1   ...Who'd have thunk it  So now I'm left with 'nudging' every application into using English  Oh Well, could have been worse, right  Screenshot from XTerm attached... Thanks Thaddy  Regards Benny ---------------------------------------------------------------------- tetrastes · 2025-03-27 13:52 Just out of curiosity, did you try UXTerm? ---------------------------------------------------------------------- cdbc · 2025-03-27 14:02 Hi Nope. I have 4 different terminals to work with on a daily basis, all now working great, no need for more... - Konsole - Terminology - QTerminal - XTerm Regards Benny ---------------------------------------------------------------------- tetrastes · 2025-03-27 14:37 UXTerm is just XTerm launched with some parameters fitted for UTF-8 locale. It usually presents along XTerm.