On 2/22/07, Joseph Crawford <[EMAIL PROTECTED]> wrote:
ZIt is choking on the e charachter i figured that out but how to stop it
from choking is the problem.
After checking this is the first line of the XML returned by Google
<?xml version="
1.0" encoding="UTF-8"?>
So make sure the text you send is encoded as utf-8. You're probably
sending ISO-8869-1 right now. The iconv functions will help.
It's a good idea these days to use unicode everywhere (forms,
database, output) so you don't have to think about it. Sometimes you
get text from other services, though, and that's when it needs to be
re-encoded.
Anyone who needs an introduction to character encoding in general, and
unicode in particular, should peep Carlos Hoyos presentaion from last
year:
http://www.nyphp.org/content/presentations/smallworld/April2006-nyphp-Presentation.ppt
--
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php