diegoveloper / quickprinter

[Quick Printer] Created for the purpose of serving as a channel among other applications that require printing data on receipt printers using ESC / POS commands.
121 stars 26 forks source link

Cannot use newline in QR Code #37

Open awiprayitno opened 3 years ago

awiprayitno commented 3 years ago

Hi, I am printing from a website using javascript by opening an Intent.

From what I read, it should be possible to put newline character inside the QR Code, by using %0A character. I tried many encoding like %250A and also \n, but none of them works.

I built my text in javascript, then use encodeURI as in the example before opening the Intent.

Can you help me, thanks.

diegoveloper commented 3 years ago

does it work without the breakline?