mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-07 14:18:54 +00:00
fix: support utf-16 encoding
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
c1d9fa2db3
commit
0b52723667
4 changed files with 20 additions and 22 deletions
|
@ -81,7 +81,7 @@ class PassBarcode {
|
|||
return PassBarcode(
|
||||
format: _allowedFormats[json['format']]!,
|
||||
barcodeData:
|
||||
Uint8List.fromList(messageEncoding.encode(json['message'] as String)),
|
||||
Uint8List.fromList(messageEncoding.encode((json['message'] as String).replaceAll('\\', '\\\\'))),
|
||||
messageEncoding: messageEncoding,
|
||||
altText: json['altText'] as String?,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue