ampersand converted to unicode character on json
-
there is something strange on my amp-analytics modules, inside <script type=’application/json’>:
this is a json inside a amp-analytics node on my site, but between cp1 and cp2, must be an ampersand and shows the unicode character instead. In noamp mode, it shows the & normally
{“requests”:{“custom_params”:”cp1=test\u0026cp2=test”},”vars”:{“env”:”-preproduction”},”triggers”:{“trackConsent”:{“on”:”visible”,”request”:”impression”}}}
i tried to convert the string
cp1=test\u0026cp2=test
to UTF-8, use the html_entity_decode but allways shows de \u0026 instead of &thank you in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘ampersand converted to unicode character on json’ is closed to new replies.