FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Processing accented characters submitted from forms
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Processing accented characters submitted from forms [message #184496 is a reply to message #184489] Fri, 03 January 2014 13:05 Go to previous messageGo to previous message
JohnT is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ORMs comparisons/complaints.
Next Topic: thank you, richard@noreply
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 19:29:53 GMT 2024

Total time taken to generate the page: 0.04674 seconds