escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

persian unicode

Open rezazovich1 opened this issue 3 years ago • 0 comments
trafficstars

hello sir I am using persian (farsi or fa) language. this is my code: `require 'vendor/autoload.php'; use Mike42\Escpos\Printer; use Mike42\Escpos\PrintConnectors\FilePrintConnector; use Mike42\Escpos\CapabilityProfile; use Mike42\Escpos\PrintConnectors\WindowsPrintConnector;

$profile = CapabilityProfile::load("default"); $connector = new WindowsPrintConnector("smb://cmputer/printer"); $printer = new Printer($connector, $profile); $printer -> text("سلام دنیا"); $printer -> cut(); $printer -> close();`

my output is something like this:

EOAO EO?A

how can I print a Persian word? thanks

rezazovich1 avatar Dec 19 '21 06:12 rezazovich1