kakzaki / blue_thermal_printer

Working with thermal printer via bluetooth (Flutter)
MIT License
166 stars 211 forks source link

Support different charset in print methods #48

Closed danilof closed 4 years ago

danilof commented 4 years ago

Hi, I added support with optional parameter for setting charset: updated methods are: customPrint and printLeftRight. This is example with additional option parameter "charset":

  String testString = " čĆžŽšŠ-H-ščđ";
  _bluetoothPrinter.printCustom(testString, 1, 1, charset: "windows-1250");
  _bluetoothPrinter.printLeftRight("Številka:", "18000001", 1, charset: "windows-1250");
kakzaki commented 4 years ago

Nice, thanks for your contribution