On Sat, Nov 15, 2008 at 9:42 PM, marcelo <[EMAIL PROTECTED]> wrote: > > On Nov 15, 8:26 pm, "Barry Hunter" <[EMAIL PROTECTED]> > wrote: >> >> even urlencode itself replaces spaces with +'s >> > > hhmmm... '%2C' not '+'
%2C is the encoded version of a comma. %20 is a space ;) > > On my installation of PHP 5, urlencode() converts > 'kerikeri rd, kerikeri, northland, nz' > to > 'kerikeri+rd%2C+kerikeri%2C+northland%2C+nz' yes you still have spaces in there (the +'s). Encoded commas is a probably a good idea but not required, its not a reserved char. > > and that's what I use in my HTTP geocoding scripts, though I also use > fopen instead of file_get_contents. shouldnt make much difference (in fact I think file_get_contents just wraps a call to fopen anyway ;) > > -- > Marcelo - http://maps.forum.nu > -- > > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
