Re: Processing accented characters submitted from forms [message #184496 is a reply to message #184489] |
Fri, 03 January 2014 13:05 |
JohnT
Messages: 16 Registered: April 2011
Karma:
|
Junior Member |
|
|
On Fri, 03 Jan 2014 13:53:04 +0100, Thomas 'PointedEars' Lahn wrote:
> JohnT wrote:
>
>>
>> Changing to UTF-8 is not an option,
>
> Why not?
It's a big site.
It would take too much work to rebuild it all.
>
>> as that is the PHP 5 default,
>
> How did you get this idea?
http://uk1.php.net/manual/en/function.htmlentities.php
says:
Like htmlspecialchars(), htmlentities() takes an optional third
argument encoding which defines encoding used in conversion. If omitted,
the default value for this argument is ISO-8859-1 in versions of PHP
prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards.
>
>> and makes the programming a lot easier.
>
> If only it were so. PHP 5 still is oblivious as to character encoding.
http://uk1.php.net/manual/en/book.iconv.php
|
|
|