google / google-visualization-issues

288 stars 35 forks source link

googole chart Qr if exist :// and chinese error #2997

Closed TUNGJUNGWU closed 1 year ago

TUNGJUNGWU commented 1 year ago

if gen qr string exist :// and chinese will be error

ex:https://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=%3a%2f%2f一二三 if scan get ://xn--4gqsa60b but test if /:/ or //: or :/ or // it's normal https://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=%2f%3a%2f一二三 https://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=%2f%2f%3a一二三 https://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=%3a%2f一二三 https://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=%2f%2f一二三

how can i solve this problem