Re: Blank message body on some replies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, it is late reply.

In message <34433472.post@xxxxxxxxxxxxxxx>
	on Fri, 14 Sep 2012 09:35:30 -0700 (PDT),
	Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx> 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 <taca@xxxxxxxxxxxxxxx>

------------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux