• 1-877-437-3028
  • support@mobiprintapp.com

Encoded UTF-8 CPCL options for special characters

  • Encoded UTF-8 CPCL options for special characters

    We were asked to handle special characters in mobi print, here are some links to test the encoded CPCL.   Mobi print App Test 1   Test 

    CPCL Print Code – CPCL File Download

    ! 0 200 200 456 1 PW 609 TONE 200 SPEED 5 NO-PACE T 5 0 160 96 YWJjZGVmZ2hpamtsbW5vc€ BT 7 0 3 B 128 2 30 163 127 133 _var_1_ BOX 98 71 501 353 8

     

    Base64 Encoding String ISAwIDIwMCAyMDAgNDU2IDENClBXIDYwOQ0KVE9ORSAyMDANClNQRUVEIDUNCk5PLVBBQ0UNClQgNSAwIDE2MCA5NiBZV0pqWkdWbVoyaHBhbXRzYlc1dmPigqwNCkJUIDcgMCAzDQpCIDEyOCAyIDMwIDE2MyAxMjcgMTMzIF92YXJfMV8NCkJPWCA5OCA3MSA1MDEgMzUzIDgNCg0KDQoNCg0K

     

    Confirmed working from Zebra setup utilities:   Untitled IMG_0739

    Comments (1)

    • Version 3.40 is able to print chars encoded in BAS64 of UTF-8 encoded characters in the URL send in CPCL language. While UTF-8 is capable to map more than 1 million characters, Mobi Print to Zebra imz320 is only able to print chars with decimal value less than 256 (8-bit ASCII) – because CPCL in imz320 uses code page Windows-1252 (with exception of about 10 char values).

      Testing can be simplified: You don’t need to send any CPCL commands. Just send the following string: ” !”#$%&'()*+,-./0123456789:;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ” which includes chars in the range 32-255 (increasing order with omission of illegal char. values). Encoded in BASE64 UTF-8 the string will be: “ICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX7CocKiwqPCpMKlwqbCp8KowqnCqsKrwqzCrcKuwq/CsMKxwrLCs8K0wrXCtsK3wrjCucK6wrvCvMK9wr7Cv8OAw4HDgsODw4TDhcOGw4fDiMOJw4rDi8OMw43DjsOPw5DDkcOSw5PDlMOVw5bDl8OYw5nDmsObw5zDncOew5/DoMOhw6LDo8Okw6XDpsOnw6jDqcOqw6vDrMOtw67Dr8Oww7HDssOzw7TDtcO2w7fDuMO5w7rDu8O8w73DvsO/xIDEgcSCxIPEhA0K”.

      Reply

    Leave a comment

    Required fields are marked *

Loading...