API qrcode Google does not recognize the signal +

Asked

Viewed 111 times

0

I am using a Google API to generate qr code. However, the generated image is not displaying the "+" character. It switches to space. As an example below:

https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=12345678901234567892Testeagora+teste+Sinal

This statement returns a qrcode without the signal characters +

  • Managed to solve?

  • Hello Leandro ! I managed to resolve yes from your reply. Thank you very much! Sorry I’m new here. I thought it was enough for me to click as a positive on your reply and that would be indicated, as well as adding points to your reputation. If any more action on my part is needed, just let me know. Thank you again !

  • Actually it’s not just about reputation, if you vote positively and accept as an answer to your question, it makes it easier for other people who go through the same problem to find the solution easier and faster.

1 answer

0


In URL Decode signal + is representing a space, as well as the %20, if you want to explicitly guarantee its value as +, replace with %2B

https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=12345678901234567892Testeagora%2Bteste%2BSinal

Browser other questions tagged

You are not signed in. Login or sign up in order to post.