[Owncloud] htmlentities problem

Weng Xuetian wengxt at gmail.com
Mon Apr 23 12:10:24 UTC 2012


Hi,
I recently found that some unicode string is not correctly displayed.
and the problem is htmlentities encoding problem.

Since PHP 5.4, htmlentities will use UTF-8 by default, but ISO-8859-1
before PHP 5.4, so it will cause problem on some old system (or not
that old). After grep owncloud code, seems there are many place
doesn't use UTF-8 as argument.

If owncloud want to support older system, force specify encoding in
htmlentities might need to be a rule.

Regards



More information about the Owncloud mailing list