Problem with displaying links transliterated from Ukrainian language (Letter "і")
Hello. I have a problem with displaying links transliterated from Ukrainian language.
htt://localhost/discussion/2/graficheskie-artefakty-neizvestnogo-proishozhdeniya - Topic Title in Russian (Графические артефакты неизвестного происхождения!) - All is well.
htt://localhost/discussion/2/graf%F1%96chn%F1%96-artefakti-nev%F1%96domogo-pohodzhennya" - Topic Title in Ukrainian (Графічні артефакти невідомого походження!) - There is a problem with the letter "i", and it changes to a symbol "%".
How can i fix this? Thank you.
Best Answer
-
aZzZzZoT New
@hgtonight said:
This is called percent encoding: https://en.wikipedia.org/wiki/Percent-encodingI am not sure if that can even be removed to be honest.
I added new characters UA/RU (ї, і, є, Ї, І, Є, И) into \library\core\class.format.php and yet everything is ok.
7
Answers
This is called percent encoding: https://en.wikipedia.org/wiki/Percent-encoding
I am not sure if that can even be removed to be honest.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I added new characters UA/RU (ї, і, є, Ї, І, Є, И) into \library\core\class.format.php and yet everything is ok.
@aZzZzZoT
Bear in mind that file will be over-written when you upgrade Vanilla, and you will need to make the changes again.
@whu606
https://github.com/vanilla/vanilla/pull/4772
Present encoding is a way of preserving encoding. Browsers are under no obligation to render characters outside of url encoding, servers are under no obligation to accept them.
Browser usually convert percent encoding visually in the address bar, but sometimes this is missed.
https://perishablepress.com/stop-using-unsafe-characters-in-urls/
http://www.ietf.org/rfc/rfc3986.txt
http://www.ietf.org/rfc/rfc1738.txt
That said rules can be broken for good reason.
grep is your friend.
Ok I understand you are talking about transliteration or romanticisation. .
grep is your friend.