Skip to content

UTF-8 encoding support#273

Open
19z wants to merge 3 commits into
davidshimjs:masterfrom
19z:master
Open

UTF-8 encoding support#273
19z wants to merge 3 commits into
davidshimjs:masterfrom
19z:master

Conversation

@19z

@19z 19z commented May 3, 2022

Copy link
Copy Markdown

Now you can use text in other languages.

qrcode.makeCode("你好 こんにちは 여보세요");

@jp-ed

jp-ed commented Jun 13, 2022

Copy link
Copy Markdown

Nice work. This also fixes an overflow issue when using emojis.

qrcode.makeCode("🖤🌹");

@anka

anka commented Aug 4, 2022

Copy link
Copy Markdown

@19z Actually, it does not work in combination with VCARD. If I create a valid VCARD the umlaute "ö,Ö,ä,Ä,..." are not shown correctly. However, if I create a QR code just for a simple text line like "Österreich" it works pretty fine. Do you have any suggestions on that?

Example:

BEGIN:VCARD
VERSION:4.0
N:LÄstname;FirstNäme;;Title;
FN:Title FirstNäme LÄstname
END:VCARD

IMG_52C655939EE2-1

@19z

19z commented Aug 4, 2022

Copy link
Copy Markdown
Author

@19z Actually, I does not work in combination with VCARD. If I create a valid VCARD the umlaute "ö,Ö,ä,Ä,..." are not shown correctly. However, if I create a QR code just for a simple text line like "Österreich" it works pretty fine. Do you have any suggestions on that?

Example:

BEGIN:VCARD
VERSION:4.0
N:LÄstname;FirstNäme;;Title;
FN:Title FirstNäme LÄstname
END:VCARD

IMG_52C655939EE2-1

I scanned it using another scanning tool and parsed the original text as you entered it. It doesn't seem to be a problem with the generator.

@anka

anka commented Aug 4, 2022

Copy link
Copy Markdown

@19z Ok, thanks for that. I did use an iPhone 12 Pro with iOS 15.4.1 and its native QR code scanning feature.

@anka

anka commented Aug 5, 2022

Copy link
Copy Markdown

@19z found a solution. Either use VERSION:3.0 or add the property CHARSET=UTF-8 to each appropriate line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants