-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Problem German Umlaute #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @jhillmannco , this isn't really a bug by QRCoder but rather a bug by yours and some other QRCode readers. QRCoder generates valid QR codes. Just try the QR code in the following QR decoder and you'll see that everything is fine:http://qrlogo.kaarposoft.dk/qrdecode.html How it has to be doneThe problem's source lies in the QR code standard (ISO/IEC 18004). There you can read in chapter 5:
and in chapter 6.3.4
What QRCoder doesSo this is exactly what QRCoder does. If a payload has to be encoded in Byte-Mode, QRCoder checks if the string can be encoded in ISO-8859-1. If so, it uses ISO-8859-1 encoding, because of the QR code ISO standard. If the payload for example contains asian characters, which can't be encoded in ISO-8859-1, it automatically switches to Utf-8. What your QR code app doesYour QRCode app doesn't show the umlauts. In most cases this happens, when QR code readers expect Utf-8 in every case. Hardly spoken, this is the result when somebody implements an app which doesn't observes the standard. How I "solved" itTo help you with your trouble, I added an additional parameter on the CreateQrCode-method in QRCodeGenerator-class with this commit: e473610 . But please take note, that you're leaving the standard path, too, by setting this parameter. Also most QRCode readers should be able to handle this mode, because Utf-8 encoded payloads are marked as such, so most readers should be able to detect the forced Utf-8. |
Perfect Solution ! |
Very Good Library now im gonna replace Fuckuchi LibQrencode with this awesome QRCoder |
May I ask you, in what project you use the library? If you don't want, no problem, but I'm always interested to see where and how it helps other developers. |
Hello |
Problem with
123456789äüß will return
123456789???
But
Ä123456789äüß returns
Right
Please correct
The text was updated successfully, but these errors were encountered: