[Solved] Printing euro symbol in ticket lazarus / 21-General ---------------------------------------------------------------------- lainz · 2022-02-10 23:51 Hi, we use ESC / POS printer and we need to print the euro symbol. Any ideas on how to configure that, currently we use: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i escMultiLang = chr(27) + chr(116) + chr(39); //ISO_8859_1 But in the ticket the euro symbol looks like this (attached image). ---------------------------------------------------------------------- Kays · 2022-02-11 00:21 Quote from: lainz on February 11, 2022, 12:51:41 amHi, we use ESC / POS printer and we need to print the euro symbol.I think this is really hardware specific, how and what kind of output is supported. I suggest to print a sheet, a table enumerating all chr(0) to chr(255). There’s probably a € already included without any escape sorcery. Or overstrike approximation ('C', backspace, '='). ---------------------------------------------------------------------- jesusr · 2022-02-11 02:04 Quote from: lainz on February 11, 2022, 12:51:41 amHi, we use ESC / POS printer and we need to print the euro symbol. Any ideas on how to configure that, currently we use: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i escMultiLang = chr(27) + chr(116) + chr(39); //ISO_8859_1 But in the ticket the euro symbol looks like this (attached image). If the printer faithfully follows the iso-8859-1 encoding, then it's doing right because iso-8859-1 has no euro sign. You need to convert the UTF-8 characters that Lazarus use to any printer supported encoding that has the euro sign (iso-8859-15 has it at the $A4 position and windows-1252 has it at the $80 position). The LConvEncoding unit makes this easy. ---------------------------------------------------------------------- SymbolicFrank · 2022-02-11 08:46 In my experience, this differs from printer to printer, what mode it is running in and the selected font. Read the manual. ---------------------------------------------------------------------- winni · 2022-02-11 09:33 Hi! There was a temporary solution for Windows when the Euro was introduced: The € sign was at #127. Try that. Winni ---------------------------------------------------------------------- lainz · 2022-02-11 13:42 Quote from: jesusr on February 11, 2022, 03:04:15 amIf the printer faithfully follows the iso-8859-1 encoding, then it's doing right because iso-8859-1 has no euro sign. You need to convert the UTF-8 characters that Lazarus use to any printer supported encoding that has the euro sign (iso-8859-15 has it at the $A4 position and windows-1252 has it at the $80 position). The LConvEncoding unit makes this easy. Thanks, Windows 1252 did the trick Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i escMultiLang2 = chr(27) + chr(116) + chr(16); //WPC_1252