escpos-php
escpos-php copied to clipboard
Turkısh Characters Problem
Hi @mike42 ; Some Characters Are Wrongly Written When I Print From The Xprinter XP-365B Printer
require DIR . '/vendor/autoload.php'; use Mike42\Escpos\PrintConnectors\WindowsPrintConnector; use Mike42\Escpos\CapabilityProfile; use Mike42\Escpos\Printer;
$profile = CapabilityProfile::load("TUP500"); // I think the problem is here
$connector = new WindowsPrintConnector("xprinter");
$printer = new Printer($connector);
$yazi = "Pijamalı hasta, yağız şoföre çabucak güvendi\nPijamalı hasta, yağız şoföre çabucak güvendi\nPijamalı hasta, yağız şoföre çabucak güvendi\nPijamalı hasta, yağız şoföre çabucak güvendi\nPijamalı hasta, yağız şoföre çabucak güvendi\n";
$printer -> text($yazi);
$printer -> cut();
$printer -> close();

Could you try changing the CapabilityProfile value with POS-5890?
Cambia la codificación de carácteres en la impresora. Házlo a través de la aplicación proporcionada por la marca de tu impresora. Prueba con distintos códigos en la fuente de impresión o utiliza una que se llama 'multilingual'
I am using GPrinter GP-R3(Android with RawBT on TSPL mode) has turkish character problems. Have any solution for that?