Hi.
I had download the files: characterlist.php and javascript.js in the folder includes from the repository, then I upload this to my host and try but the problem continue. Do I procedure bad? What have to do to correct this problem?
(Excuse me for my english. My first language is Spanish)
Thanks for your patient.
You did it right. Try clearing the cache in your browser. The old javascript may still be in place. You may also want to completely delete the files off your webserver then upload the new files. Sometimes the new files don't get overwritten correctly.
Thanks Tammy.
I clear the cache in my browser and the characters look fine now, but the category name not. Is that right with the new files in SVN repository?
Thanks again for your patient
I'll apply the same fix to the categories in a little while.
Since there was no response for a long time, I have found the bug by myself. Fix follows below.
Russian letters were replaced not only in cactegories section, the same issue appeared when editing chapter titles. In order to fix it, please go through your eFiction source code, find all references to function htmlentities(XXX) and replace it by htmlentities(XXX, ENT_NOQUOTES, _CHAR_CODE). _CHAR_CODE is predefined constant "cp1251", I have added it to file ru.php.
I hope that author will accept this fix and use it in further versions.
Дело было в функции htmlentities(), которой автор eFiction забыл указать кодировку в качестве параметра. Я добавила новый параметр, _CHAR_CODE, которому указала значение "cp1251" в файле ru.php, и заменила все вызовы htmlentities(XXX) на htmlentities(XXX, ENT_NOQUOTES, _CHAR_CODE). Было бы неплохо, если бы автор учел это исправление в следующих релизах. Ну а если нет, придется при каждом обновлении eFiction вносить эти исправления вручную.
Could you not use the predefined "_CHARSET" variable instead of adding your own?
If someone is willing, I'd really appreciate a copy of someone's database so I can test a fix for this.
Do you need one with Russian letters/other non-English characters?
I need one with a character set that's not the standard one.
Probably it's not very elegant solution, but removing urlencode(...) from includes/categorylist.php made everything work fine.
У себя использовал топорное, но действенное решение проблемы: выкинул urlencode, не трогая его содержимого, из categorylist.php. "Работает хреновина"! =)
