Hi, it is late reply.

In message <34433472.p...@talk.nabble.com>
        on Fri, 14 Sep 2012 09:35:30 -0700 (PDT),
        Tomas Kuliavas <to...@users.sourceforge.net> wrote:
> taca wrote:
>> Someone created wrapper function to htmlspecialchars() to fix this
>> problem.  This patch contains "jaJP" in its filename but it isn't
>> Japanese specific fix at all.
>> 
>> http://doga.jp/~taka2/archive/squirrelmail-webmail-1.4.22-PHP54jaJP_20120705taka2.diff
>> 
> 
> Instead of copying syntax from PHP manual, code should ignore idiocy written
> there and use only ENT_COMPAT. ENT_HTML401 introduces backwards
> compatibility break and does nothing.
I don't understand what you meant.  ENT_COMPAT or ENT_HTML401 change
default charset of htmlspecialchars()?

Intention of patch ie solve the default charset change of
htmlspecialchars().

* Prior to PHP 5.4: default is ISO-8859-1 and if real encoding isn't
  ISO-8859-1, htmlspecialchars() process as ISO-8859-1 without error.

* PHP 5.4 and later: default is UTF-8 and if real encoding isn't
  UTF-8, htmlspecialchars() may cause error with byte sequence that
  isn't correct as UTF-8.

Best regards.

-- 
Takahiro Kambe <t...@back-street.net>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to