Notifications
Clear all

Problem with Russian letters while choosing a category

25 Posts
7 Users
0 Reactions
12.8 K Views
(@drumy)
Posts: 26
Eminent Member
 

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.


 
Posted : 28/07/2009 6:41 pm
(@tammy)
Posts: 2577
Member Moderator
 

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.


 
Posted : 28/07/2009 7:15 pm
(@drumy)
Posts: 26
Eminent Member
 

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


 
Posted : 28/07/2009 7:26 pm
(@tammy)
Posts: 2577
Member Moderator
 

I'll apply the same fix to the categories in a little while.


 
Posted : 28/07/2009 9:15 pm
(@guest6438)
Posts: 0
 

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 вносить эти исправления вручную.


 
Posted : 23/08/2009 8:16 am
(@tammy)
Posts: 2577
Member Moderator
 

Could you not use the predefined "_CHARSET" variable instead of adding your own?


 
Posted : 23/11/2009 10:36 pm
(@tammy)
Posts: 2577
Member Moderator
 

If someone is willing, I'd really appreciate a copy of someone's database so I can test a fix for this.


 
Posted : 23/11/2009 10:49 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Do you need one with Russian letters/other non-English characters?


 
Posted : 24/11/2009 7:31 pm
(@tammy)
Posts: 2577
Member Moderator
 

I need one with a  character set that's not the standard one. 


 
Posted : 25/11/2009 12:00 am
(@guest6894)
Posts: 0
 

Probably it's not very elegant solution, but removing urlencode(...) from includes/categorylist.php made everything work fine.

У себя использовал топорное, но действенное решение проблемы: выкинул urlencode, не трогая его содержимого, из categorylist.php. "Работает хреновина"! =)


 
Posted : 30/07/2010 5:27 pm
Page 2 / 2
Share: