-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esc2html encoding #61
Comments
Apologies for the slow response on this. Your usage is correct, but non-default character encodings aren't effectively supported by these tools at the moment. The default encoding (0) is CP437, and this works fine. There would be The CP437 to UTF-8 conversion is performed in I've marked this as an enhancement, because we don't seem to be tracking this yet. |
My workaround was simply:
and
I only remapped letters and symbols that I used so far. Right now it is easiest way for me to "fix" this issue. |
I am facing a similar issue, I need ½, ¼, and ¾ characters, which I found in latin1 (ISO-8859-1) charset. My source file in latin1 encoding and default is CP437. I am working on this and send you PR. |
I'm trying to convert my receipt to html just to be able to show rough version of receipt before/after printing. I'm using basically stock code from example but I have problems with diacritics
řčúěžý...
and some symbols like×
for example instead of:
I get
Text is printing fine on my printer.
I hope that I'm using dummy connector correctly:
I did try to add iconv('CP437', 'UTF-8... to:
But that just produced another garbled text instead of special symbols.
Maybe I overlooked something in documentation. Do you have any suggestion?
The text was updated successfully, but these errors were encountered: