google 图表中的 QR 码 API 不接受“#”字符,如何使其工作?

'#' character is not accepted in QR code API from google charts, how to make it work?

我正在使用google图表生成二维码,html需要与二维码图像关联的地址包含“#”并且它会中断url。并且仅显示“#”之前的 url 的一部分。

示例:https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=https://eservices.esma.gov.ae/#/app/certificateDetail/71990

有什么解决办法吗?

谢谢!

# 标记您的 Google 图表 URL 的片段部分,不会发送到服务器。

您需要对参数进行URL编码。