Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:19 22 Nov 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Feature request: UTF-8 on the serial console(and Font 1 as a TrueType)

Author Message
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 777
Posted: 01:03pm 20 Nov 2026
Copy link to clipboard 
Print this post

1_byte-mode_ISO8859-1:


2_utf8demo_UTF-8:


3_utf8demo_PicoCalc_LCD:


Feature request: UTF-8 on the serial console (and Font 1 as a TrueType font)

Hi Peter,

my wish is this for the CMM2 with firmware 8, but it would be a feature for MMBasic in general: the CMM2 and the PicoMite family share Font 1 (font1.h). I made a TrueType copy of it, so a PC terminal shows exactly what the screen shows. That works today for bytes 32-127 and 160-255. Bytes 128-159 stay dark: Tera Term 5 treats them as C1 control codes and drops them, whatever the font.

In UTF-8 mode a terminal could show everything, including real UTF-8 text (SQLite data, for example). But a single byte 128-255 is not valid UTF-8, so today the CLI, the editor and every PRINT CHR$(128...255) disappear in a UTF-8 terminal.

Suggestion (the name is only a suggestion):
OPTION SERIAL UTF8 ON | RAW | OFF


    - ON - each byte sent to the serial console goes out as the UTF-8 of the character Font 1 draws for it (one table, 130 entries). No program has to change; the terminal shows the same as the screen.
    - RAW - the program writes UTF-8 itself. The serial port gets it unchanged; the screen shows the Font 1 character from the table, or a dot. One character = one cell on both sides.
    - OFF - as today.

The screen (VGA, HDMI, LCD) does not change in any mode.

The attached ZIP has the details (feature-request.txt), the table, both fonts, three screenshots (Tera Term and the PicoCalc LCD) and utf8demo.bas, which simulates ON and RAW in BASIC with OPTION CONSOLE switching. So far tested on the PicoCalc only; the CMM2 test is still to come.

Matthias

utf8-terminal.zip
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026