Thanks Mark, Came across lucid and clear. I'll have a further read.
Joseph Joseph Harris www.smilepoetryweekly.com > > > Finding a toe dipped into Kevin Yank's Site Point e-letter I was > frightened > > by the encoding issue. He says both ISO-8859-1 and UTF-8 can > cause severe > > headaches with PHP. > > I wouldn't call them severe as long as you know the problem exists. > Of course there are going to be a couple gotchas in any article like > that, the first one that caught my eye was "most Web servers are set > up to serve HTML content using the ISO-8859-1 character encoding" > which is true as most of the web (about 70%) runs on Apache and > Apache2 comes with the "AddDefaultCharset ISO-8859-1" directive. It > also serves with a default install about 20 other character sets. > > > Has anyone experienced sites, sales, fora (forums), etting mucked > up by > > character encoding problems? This seems to mostly be where surfer > input is > > involved. > > And what is your aspirin substitute to solve the problem? > > Know your audience, make your forms check client and server side for > the correct input. Don't try to exclude bad input, (other than the > obvious of course), instead accept only the data that you expect to > get and if it's not correct, send a friendly message to the form > user. > > In my experience, the only problem I've had with this is having an > old app force utf-8 encoding on a form that interacted with the db, > and mysql was choking because it wanted a different charset. Can't > remember what I did to fix the appy, prolly just matched the two up > so they talked the same dialect and defined closer what was > acceptable. > > The article linked from Kevin's has practical information that you > can really use, like which string functions will muck up with the > wrong encoding etc: > > http://wact.sourceforge.net/docs/doku.php?id=php:i18n:charsets > > hth! > > cheers, > > Mark ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
