API qrcode Google does not recognize the +

0

I'm using a Google API to generate qr code. However, the generated image is not displaying the "+" character. He trades for space. As an example it follows:

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

This statement returns a qrcode without the characters of the sign +

    
asked by anonymous 14.11.2018 / 15:31

1 answer

0

In the Decode URL, the + sign is representing a space, as well as %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
    
14.11.2018 / 15:37