Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12522
| From | JohnT <john-sospam@jtresponse.co.uk> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Processing accented characters submitted from forms |
| Date | 2014-01-03 12:53 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <la6bs9$c3s$3@dont-email.me> (permalink) |
| References | <la4254$6bh$1@dont-email.me> <bill67F13f6U1@mid.individual.net> <la67dv$c3s$1@dont-email.me> <0.cb1d1865c94178664953.20140103123727GMT.87mwjdz1fc.fsf@bsb.me.uk> |
On Fri, 03 Jan 2014 12:37:27 +0000, Ben Bacarisse wrote: > JohnT <john-sospam@jtresponse.co.uk> writes: <snip> >> We're already using iso-8859-1 for the whole website. It will be a lot >> of work to change all that, so I guess we'll have to put up with the >> odd Turkish I causing problems. > > It's not clear (to me at least) what's happening to the data, but as far > as any normal set of HTML pages are concerned (PHP generated or > otherwise) you don't have to put up with a dotted I causing problems on > an ISO-8859-1 encoded page. You can represent any Unicode character in > a page using character entities (browser and font support is always and > issue but not nowadays for anything as ordinary as İ). I think it must be the browser that is encoding the character because İ is not supported by iso-8859-1. It arrives in the request data as the html numeric entity code, as that is the only way it can be transmitted. This causes issues: As I always htmlencode user entered data before display, it means that it gets encoded twice. I'll have to add the 'disable double encode' flag thoughout my code :-) Secondly, it will be added to the database as the entity code, so this will break searching the database etc... I think the proper fix would would be to convert to UTF-8. But thats a lot of work. For now, I think I'll just manually translit the codes that cause issues. JohnT
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-02 15:55 +0000
Re: Processing accented characters submitted from forms "J.O. Aho" <user@example.net> - 2014-01-02 18:15 +0100
Re: Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-03 11:37 +0000
Re: Processing accented characters submitted from forms Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-03 12:37 +0000
Re: Processing accented characters submitted from forms Tim Streater <timstreater@greenbee.net> - 2014-01-03 12:52 +0000
Re: Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-03 13:00 +0000
Re: Processing accented characters submitted from forms Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-03 10:09 -0500
Re: Processing accented characters submitted from forms "J.O. Aho" <user@example.net> - 2014-01-03 18:57 +0100
Re: Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-03 12:53 +0000
Re: Processing accented characters submitted from forms Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-03 14:30 +0000
Re: Processing accented characters submitted from forms Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-03 10:11 -0500
Re: Processing accented characters submitted from forms Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-03 20:28 +0000
Re: Processing accented characters submitted from forms Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-03 22:54 +0100
Re: Processing accented characters submitted from forms Tim Streater <timstreater@greenbee.net> - 2014-01-03 21:58 +0000
Re: Processing accented characters submitted from forms Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-03 22:01 +0000
Re: Processing accented characters submitted from forms Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-03 19:59 -0500
Re: Processing accented characters submitted from forms Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-02 20:52 +0100
Re: Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-03 11:40 +0000
Re: Processing accented characters submitted from forms Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-03 13:53 +0100
Re: Processing accented characters submitted from forms JohnT <john-sospam@jtresponse.co.uk> - 2014-01-03 13:05 +0000
Re: Processing accented characters submitted from forms Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-03 16:03 +0100
Re: Processing accented characters submitted from forms Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-03 17:08 +0100
csiph-web