News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

'Modify post' button does not work for Cyrillic characters

Started by onzi, January 10, 2021, 12:23:42 PM

Previous topic - Next topic

onzi

Hello. If you try to write something in Cyrillic and then to edit the post, the result is unreadable. To reproduce the issue:
1. Answer with e.g. "АБВабв" (first three letters in Cyrillic, caps and small)
2. Save and click on "Modify message" button (the one for inline editing, which is marked with this image: )
3. Click on "Save", no need to change anything
4. You receive "%u0410%u0411%u0412%u0430%u0431%u0432"

Don't know where exactly the problem is, probably some encoding/decoding problem. In topic.js, modify_topic_save() there is x[x.length] = 'subject=' + document.forms.quickModForm['subject'].value.replace(/&#/g, "&#").php_to8bit().php_urlencode();

and in script.js, sendXMLDocument() there is oSendDoc.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

Aleksi "Lex" Kilpinen

I think that's a known bug with quick modify, and actually happen's here as well.

Testing: %u0410%u0411%u0412%u0430%u0431%u0432

Yup. Happens here as well.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

onzi

Did not find relevant topic, that is why I opened a new one.

%u0410%u0411%u0412%u0430%u0431%u0432



yes, same here - you see result of 'quick modify' :(

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

onzi


Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: