Skip to content

Commit

Permalink
feat: Support utf-8 [android]
Browse files Browse the repository at this point in the history
  • Loading branch information
gevgasparyan committed Feb 28, 2023
1 parent 7b59722 commit ab6238b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public static Bitmap generateQrCode(String myCodeText, int qrWidth, int qrHeight
level = ErrorCorrectionLevel.Q;
}
hints.put(EncodeHintType.ERROR_CORRECTION, level);
hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
if (marginSize != MARGIN_AUTOMATIC) {
// We want to generate with a custom margin size
hints.put(EncodeHintType.MARGIN, marginSize);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-qr-generator",
"version": "1.2.1",
"version": "1.3.1",
"description": "React native QR Code generator / reader",
"main": "index.js",
"types": "typings/index.d.ts",
Expand Down

0 comments on commit ab6238b

Please sign in to comment.