Re: [nyphp-talk] fgetcsv and German characters

2007-08-15 Thread Stephen Musgrave
that would help. And the chant goes up: UTF-8! UTF-8! UTF-8! On Aug 14, 2007, at 4:59 PM, Rob Marscher wrote: On Aug 14, 2007, at 10:01 AM, Stephen Musgrave wrote: Oh, how I love character encoding problems! ;-) Indeed... there's so many levels where they can get messed up --

Re: [nyphp-talk] fgetcsv and German characters

2007-08-14 Thread Stephen Musgrave
Interesting... \x9f and \x8a are not valid Latin-1/8895 characters. My guess is that the CSV's are UTF-8 and your database is Latin-1. If that is the case, try converting the csv to 8859-1 with utf8_decode(). I've tried to use utf8_decode() as well as using iconv to translate between

Re: [nyphp-talk] fgetcsv and German characters

2007-08-14 Thread Stephen Musgrave
Locale wouldn't matter in this case; that's primarily useful when generating content (such as formatted dates or gettext translations). That's odd, because they have examples in the comments in the documentation on php.net that it does. However, my experience is in line with your statement.

[nyphp-talk] fgetcsv and German characters

2007-08-14 Thread Stephen Musgrave
Oh, how I love character encoding problems! ;-) I have a file upload utility whereby the user uploads a CSV document. The file is saved to a temporary folder. I open that document, use fgetcsv() to pull the values and then insert them into a database. The problem is that German charact

Re: [nyphp-talk] Radial Zip Code Search

2007-01-19 Thread Stephen Musgrave
http://www.myzipdb.com/zipcode_locator.php On Jan 19, 2007, at 3:44 PM, Donna Marie Vincent wrote: Hi, all. I am looking for a script, or a tutorial on how to create a script, that will perform a radial zip code search. I Googled this "radial zip code" and "radial postcode" and have found

Re: [nyphp-talk] Gmail breaks URLs?

2007-01-19 Thread Stephen Musgrave
I found the error which in fact wasn't related to Gmail. There was a space in the URL. My bad. Thanks and sorry! On Jan 19, 2007, at 3:08 PM, Joseph Crawford wrote: Stephen, Did you try to encode the URL? Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc.

Re: [nyphp-talk] Gmail breaks URLs?

2007-01-19 Thread Stephen Musgrave
This issue isn't showing up with any other email readers. On Jan 19, 2007, at 1:38 PM, Allen Shaw wrote: Stephen Musgrave wrote: The URL is showing up in Gmail with spaces randomly inserting into it, thus breaking the URL. Here's an example: http://staging.looq. com/members/valid

[nyphp-talk] Gmail breaks URLs?

2007-01-19 Thread Stephen Musgrave
I have a double opt-in workflow on a site I am building. The user signs up for membership, they are sent a confirmation email. There is a link in the confirmation email that they must click in order to validate their account. The URL is showing up in Gmail with spaces randomly inserting

Re: [nyphp-talk] Deep Linking with Ajax?

2006-12-14 Thread Stephen Musgrave
That being said, if it is just a case of a sub-nav for displaying nested, non-interactive content, AJAX is probably overkill. This is exactly what it is. And I agree with you, it is overkill. However, the designer comes from a Flash background and would like to do it - so I said I'd exp

[nyphp-talk] Deep Linking with AJAX?

2006-12-14 Thread Stephen Musgrave
I have a designer who would like to have links on the subnav to NOT refresh the page. This could be done with iFrames, but best if done with a DIV using AJAX. However, from a usability perspective, I am concerned that the URL displayed on the Location string is not the page they are lookin