Problem with shared links that contain other languages

Version 1.15.4 (git: v1.15.4) Linux Mint
same problem exists on Android

when i share a link that has Persian strings in it, instead of showing the strings in Persian; DC shows the code which is long

Expected behavior

Persian link:
per

Actual behavior

test link:

Arabic link:
Screenshot from 2021-04-22 13-52-10

Which browser are you sharing from? Is it Firefox?

yes i also tested Chrome on android

so when displaying links we should show the uri-decoded version?

yes

Have you copied the link from your browser? I think the uri decode variant comes from your browser, because I can send and recieve it fine when I don’t use the uri encoded variant:

2021-05-22_02-36_2

thank you for your response :slightly_smiling_face:
yes it happens when i copy the link from browser(Chrome, Firefox )…these browsers use encoded version (if your local settings are set to a certain language) and since no one types a long link like that, sharing them from browser will lead to a long gibberish text. is it possible for DC to keep the encoded variant when I paste an encoded link?
encoded link in Firefox:

Salaam! I think your name is Behnam. right? I am your mole inside. We are tracking this bug and many other similar bugs in Parse IRI links by farooqkz · Pull Request #57 · deltachat/message-parser · GitHub

Regarding decoding URLs with such characters, e.g. Persian/Arabic/Hebrew alphabets and German umlauts, I am in favor of not decoding them in DeltaChat unless some other messenger or chat app is already doing this and it’s a de facto standard.

my opinion is also that what you paste, should be pasted as-is if the browsers encode the URL then that is something to report to the browsers if someone things that is a bug, otherwise you would need to go around complaining to every single app out there to correct a behavior that is from your browser

UPDATE: it is actually possible to correct this behavior in:

Firefox:

set network.standard-url.escape-utf8 property to false via about:config, source: Making sure you're not a bot!

Chrome:

there seems to be this extension:

related pages: