Skip to content

qrcode and German Umlauts #21

@klausbraun

Description

@klausbraun

Thierry,

thank you for creating the qrcode package. I started to play around with it and found some weird behavior I don't understand.
It occurs for example when I try to use "Straße", the german word for road and written with the letter ß, in some text and create a qrcode:

library(qrcode)
code <- qr_code("Straße")
png(file="qrstrasse.png", width = 512, height = 512, units = "px")
plot(code)
dev.off()

Decoding it with zbarimg on linux, I get the QR-Code:Stra絽. Doing the same with the string "Straßeê", i.e. the word "Straße" plus an ê, decoding works fine. This is true for R on linux (version 4.3.2), and R on Windows (verison 4.2.0). Comparable behaviour can be found using other german "Umlaut" characters, i.e. Ää, Üü, Öö.

Decoding a qrcode with those characters with an Android Phone always shows ? for the german "Umlauts". Decoding it with online tools like

https://zxing.org/w/decode.jspx or
https://blog.qr4.nl/Online-QR-Code-Decoder.aspx

might work or not, depending on the tools used.

Any idea how to fix this?

Best
Klaus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions