Can't print special characters ?
See original GitHub issueHi, I’m having a little bit of an issue with printing accents and I would like your help.
Informations:
Printer: Epson TM-20III Os: Windows 10
Here’s the problem:
- Printing any special character (é, ç, ë, …) will give another special character (é becomes Ú for example).
Heres what I tried:
-
I took a look at #67 and tried multiple
CodePage
but I still get the correct characters. -
I also tried to identify which encoding was returned by
e.PrintLine("é")
so that I could maybe convert it to the correct encoding but I couldn’t identify which encoding was used in the returned byte[]. -
I modified my CodePage and language from US to French from the EPSON Utility but nothing changed.
-
I successfully printed a test page of the codepage, including special characters.
At this point I’m kind of lost. I could parse all the special characters out of my string but I hope that I don’t have to do that…
If you could give me some information it would be greatly appreciated 🙏
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Thanks, @NgyAnthony for posting this. This was the solution to make the euro symbol and the British pound symbol work as expected.
Just some small comments if anyone has the same issue:
1 - You need to register the IBM00858 encoding:
Hi, thanks for your explanation, it was very clear.
I managed to be able to print accents with this snippet:
However I’m unable to use the library’s functions (e.Print or e.PrintLine), I have to give the ByteSplicer my byte array directly. Any idea on how I could convert my byte array to a string that is accepted by e.PrintLine ?
Thanks again for the input !
Edit: On second thought I don’t think it really matters if I’m not using e.Printline, this issue could be considered as solved