some (fairly) basic #Python code for converting between various text encoding schemes (in this case to print German text correctly on a thermal printer that still uses the old DOS codepage 437):
I didn't put it on the pcode gitlab as old style serial device controlling isn't that easy for beginners (and you would need exactly the same hardware setup) but there is a link in my blog if anyone wants to look at it..