Skip to content

Conversation

@bkaindl
Copy link

@bkaindl bkaindl commented Sep 14, 2025

Opening the PR branch of #141 again:

  • Improved the PR title and to make it pop up on the top of the PRs:

Add byte mode with support for UTF-8 and SJIS encodings for emojis & international characters

To generate QR code with a broad device support for non-ASCII characters (such as accents in western european languages, emojis and international characters from all around the world) QR codes need to be created in Byte mode with bytes encoded using UTF-8. SJIS is another possible option that is specific for asian languages.

For most langunages, UTF-8 should just work, but there could be devices in Asia that may supprt SJIS better than UTF-8.

I need the support for byte mode with UTF-8 encoding as well.

For now, I have to use a fork as you did not merge this yet.

It fixes many issues related to a text containing non-ASCII characters.

For example, without Byte mode with UTF-8 encoding, the German "Umlaut u" (ü) is encodded as Hex FC, which is the ISO-8859-1 (or latin-1) encoding of "ü".

This appears to work apparently on Android with the Binary Reader app, but may problably not work with other readers, but maybe note on iPhones:

At least, ChatGPT tells that UTF-8 is universally supported, including iOS.


From #141:

Hi @kozakdenys, you wrote Oct 13, 2024:

Hi @buza-me, I am sorry for my late response, I accidentally closed this PR, reopening it and review soon

Could you make due and merge this PR as soon as possible?

Will enable Utf-8 encoded strings option. It fixes many issues related to a text containing non-latin characters.
@7odaifa-ab
Copy link

i have been waiting for so long for this, it was a simpler merge than other PR, yet its still voided for no reason

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