Re: [PHP] Re: languages and PHP




On Sep 27, 2007, at 1:49 PM, Per Jessen wrote:

Edward Vermillion wrote:

But what happens if you get data that's *not* UTF-8? Just because
your html/form is set to UTF-8 doesn't mean that all your incoming
data will be UTF-8.

Yes it does. If your HTML page was sent in UTF-8, any request
originating from that page will also be in UTF8.



.... and you can guarantee that any data coming into your site comes from your form?!? WOW!!!

;)

So back to my original question, what breaks if you're *expecting* UTF-8 and you don't *get* UTF-8?

Ed
.



Relevant Pages

  • Re: CTAN has a new package: lua-inputenc
    ... I have here lua code to convert LGR into UTF-8 based Greek. ... ligatures in the Beccari fonts) and UTF8 (via the ucs package and utf8 ... Let's have another Greek input encoding, and a Lua ...
    (comp.text.tex)
  • Re: [9fans] Re: 9base ports to unix (flame of byrons rc)
    ... nobody had any idea that plan9 stuff would actually be ... > many unix tools do pretty well with utf-8 (thank's rob, ... introduced locales instead... ... UTF8 strings for odd reasons)... ...
    (comp.os.plan9)
  • Re: Cifs Netwareclient
    ... Weil NW6.0 schlicht kein UTF-8 nach draussen kann. ... Wesshalb wurden nach *DIESEM*...hatte ich gemeint. ... auf UTF8 umgeschrieben? ... IT-Beratung Rudolf Thilo ...
    (de.comp.sys.novell)
  • Re: Question regarding Encode
    ... developer mentioned that if UTF-8 and Windows-1252 are intermixed then ... whether a file is UTF8 or 1252, and since you're only using UTF8 or an ... Many live that deserve death. ...
    (comp.lang.perl.misc)
  • Re: [PHP] Re: languages and PHP
    ... A couple of folks said that was unnecessary, if you set your form to UTF-8 your incoming data will be in UTF-8 already. ... I was just trying to make the point that if you expect your incoming data to be in a certain state in your code you should make sure that it is in that state before you act on it, since you can't guarantee it's source. ...
    (php.general)