R
R
Ruben Babaev2015-02-27 12:33:41
In contact with
Ruben Babaev, 2015-02-27 12:33:41

Why can the encoding get corrupted when sharing in VK?

Firework! There is a bug that I can't beat: some users are losing their encoding when they share content from the site. It turns out like this: 053eaf97b0634fd7934db5dd193d7b7b.png
The keyword is "for some", because the rest are all ok.
Finding out the version of the browser / OS was not successful - I did not find patterns.
More examples can be found by the #artchallenge hash tag on VK.
My code:

url = "http://vk.com/share.php?url=http://artchallenge.me/?utm_source=vk-win&title="+i18n.t("shares.title",{lng: window.lang})+" %23ArtChallenge&description="+i18n.t("shares.description",{lng: window.lang})+"&image=http://artchallenge.me/pics/badges/winner-badge-"+window.lang+"-shareVK.png&noparse=true"

As a result, the user has such a url, by which he goes:
https://vk.com/share.php?url=http://artchallenge.me/?utm_source=vk-win&title=Господа,%20я%20отлично%20разбираюсь%20в%20искусстве!%20%23ArtChallenge&description=Попробуйте%20отгадать%2010%20художников%20подряд%20и%20посоревноваться%20со%20мной!&image=http://artchallenge.me/pics/badges/winner-badge-ru-shareVK.png&noparse=true

&noparse=true at the end does not affect the bug in any way, it used to be without it, but there was a bug, then in support I was advised to add it, but this did not change the situation.
Has anyone experienced something similar?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question