2017-09-18 3 views
0

Voici mon problème. J'essaie d'imprimer à partir de mon application EPSON imprimante thermique Tm T70II via Bluetooth. Je peux me connecter et imprimer mais je ne suis pas capable d'imprimer le symbole £ pour mes reçus. Il imprime des caractères étranges et j'ai du mal à trouver une solution. Quelqu'un peut-il m'aider avec? grâce à l'avance RajImpression de mon application Android hybride sur TM T70II

var uint8array = new TextEncoder('utf-8', { NONSTANDARD_allowLegacyEncoding: true }).encode(print_dtl); //print_dtl is my content 

bt.write(uint8array.buffer, deviceId); //Bluetooth print out to the device 
+0

Possible copie de [Comment imprimer British Pound Sign £ sur l'imprimante en code android] (https: // stackoverflow .com/questions/37678239/comment-imprimer-british-pound-sign-% c2% a3-on-printer-in-android-code) – jdv

Répondre

0

Je foung la solution. Commande ESC R \ 3 utilisée et modifiée en UK char set, puis en utilisant le signe hexa décimal \ u0023 pour Pound