View Full Version : ~ Tilde in numerical data

06-29-2006, 04:29 PM
Does anyone ever work with numerical data?

I am working with CSV files that when downloaded come with a ~ inside the data

I'll post an example. The filename is ok. (I understand that sometimes a filename can change due to lenth and be abreviated with a ~, but that isn't the case here.)

Example below. See it appears in the column after a number. I have several colums in my data where this occurs.

I know I could do a find/replace, but to do this every day when I upload data is going to be a pain in the rump.

Any one else have this happen?


07-05-2006, 03:27 PM
does the raw CSV have this tilde in the data ???

or is excel interpreting something else.

07-05-2006, 04:01 PM
does the raw CSV have this tilde in the data ???

or is excel interpreting something else.

Yes david.

What I've done for the time being is downloaded my data in wordpad, did a find-replace (which took a large amount of time...LOL) and then re-uploaded the data to the database.

Now I'm simply doing a find/replace daily before I upload the data.

Eventually, what I hope to do is somehow cron the download right into my database, so I don't have to touch it manually.

that would be superduper!

thanks for your reply

07-05-2006, 04:30 PM
you using PHP??

07-05-2006, 07:26 PM
you using PHP??


but whether I'm actually "using" it or not is another question.

More like, its "there" but I don't know any coding (besides what I come across on the net and what's built into dreamweaver).

so I'm doing the best I can.

07-06-2006, 08:50 AM
send me a snippet of the CSV containing 100 or so lines including the tilde

i will write a script to handle it

the better method is to be pro-active rather than re-active and find out whats writing the tilde in the first place and correct it at scource

but i can write a small script if you want