Re: Processing accented characters submitted from forms [message #184474 is a reply to message #184469] |
Thu, 02 January 2014 19:52 |
Christoph Michael Bec
Messages: 207 Registered: June 2013
Karma:
|
Senior Member |
|
|
JohnT wrote:
> One of the websites that I am working on is getting a lot of interest
> from countries that make a lot of use of accented characters.
>
> Usually accented characters come through fine.
>
> However, some are replaced by the character codes. e.g. İ
> This seems to be occurring for some Turkish and Romanian characters.
>
> Is PHP doing this ?
It seems to me that this might already been done by the browser.
Unfortunately, I was not able to find any normative reference, so out of
curiosity I set up a simple form with accept-charset=ISO-8859-1, and
entered İ (U+0130) in the contained textarea. Firefox 26 and Chrome
31.0 send it as HTML entity İ, IE 11, however, sends it as Ý (U+00DD).
A solution is to use UTF-8 encoding, as J.O. already mentioned.
--
Christoph M. Becker
|
|
|