Charset problem patch

Charset problem patch

by Dmitry Pupinin -
Number of replies: 3
Picture of Core developers Picture of Plugin developers
When I use Wiki with russian language I have the problem:
http://moodle.org/bugs/bug.php?op=show&bugid=1974&pos=0
Edit Wiki imposible. In textarea document show coded.

I patch some files by exclude "htmlentities"...
Please examine code (changes marked by "dlnsk").

PS: Remember that my expiriens in programming is many years, but in PHP is two day... clown))
Average of ratings: -
In reply to Dmitry Pupinin

Re: Charset problem patch

by Ling Li -
It's great!

I think it's better use htmlspcialchars() replace htmlentities() or add a charset parameter to htmlentities(), or it will be difficult using special characters ''&', '<', '>' etc.