simple-qrcode icon indicating copy to clipboard operation
simple-qrcode copied to clipboard

Email QRCode shows "+" instead of spaces in subject and body

Open duongnx25 opened this issue 2 years ago • 1 comments

Hi, I see this has been reported before but I still have it. When generating a QR code using the email function, if subject and body have space and scan the QR code using Iphone, the Mail app of Iphone will convert all space to "+". This doesn't occur on Android

Here's an example SVG file:

efd1502e0f867942382f852ea956c8cbb16b22b7

duongnx25 avatar Aug 09 '23 08:08 duongnx25

If instead of leaving the spaces you correctly URL-encode the URL before passing it to the QR code, so that the spaces are percent-encoded (e.g. mailto:[email protected]?subject=Testing%20a%20multi-word%20subject)

Does that work?

simonhamp avatar Aug 05 '24 22:08 simonhamp