Skip to content
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

i want to print with unicode but it show charater ???? #354

Closed
sunry2ntkh opened this issue May 6, 2017 · 3 comments
Closed

i want to print with unicode but it show charater ???? #354

sunry2ntkh opened this issue May 6, 2017 · 3 comments

Comments

@sunry2ntkh
Copy link

text("Hellow world​ ខ្មែរ = កម្ូចា\n"); $printer -> cut(); /* Close printer */ $printer -> close(); } catch (Exception $e) { echo "Couldn't print to this printer: " . $e -> getMessage() . "\n"; } ?>
@mike42
Copy link
Owner

mike42 commented May 6, 2017

The ??? indicates that we don't know how to print those characters. ESC/POS existed before unicode, but we do a good job mapping from UTF-8 to ESC/POS to print non-ASCII characters that are supported on the printer.

Could you perhaps share which model of printer you're using, a link to the vendor documentation showing the code pages available, and some sample text such as a pangram in the script you are trying to print?

This should give us an idea of whether its possible to add support or if you will need to work around it using system fonts.

@sunry2ntkh
Copy link
Author

can you help me how to mapping UTF-8

@mike42
Copy link
Owner

mike42 commented May 20, 2017

Please go to receipt-print-hq/escpos-printer-db#28, and post some information about how to encode this script on your printer (such as a link to the vendor's programming guide, or a test print showing the supported code pages and their numbers).

Closing this off as redundant.

@mike42 mike42 closed this as completed May 20, 2017
Repository owner locked and limited conversation to collaborators May 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants