MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 5th, 2005, 06:41 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
phpMyAdmin replacing ' char with Õ

In the process of inserting data from a comma-separated csv textfile into a table using phpMyAdmin, any ' characters get turned into Õ. Now I understand that the ' character is used in MySQL for commands and might cause problems in the syntax if they were left in without the \ in front to identify them as part of the text. However, will I have to run through all 5000 records adding \ where necessary or is there a better way of doing it? or is only me that is using words like ShakespeareÕs Globe and YesterdayÕs World! ....and why does it pick such an obscure character?
Sorry if this is not the first time anyone has been asked this on this forum.

Reply With Quote
  #2  
Old February 9th, 2005, 02:13 PM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
You're problem's not a conflict in MySQL with the ' character, exactly. I'm guessing that the file you're pulling the info from has been generated with 'smart quotes' -- that is, curved, comma-like apostrophes. When translating these, especially across platforms, they're often mistranslated from the apostrophe to the big O instead of '. If you open your file in a code editor, it'll probably do the same thing -- then you can just find and replace your O's with ''s before dumping into your db.

Reply With Quote
  #3  
Old February 17th, 2005, 05:09 PM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Hi Madpawn

You are probably right about the dubious character ', The database started out in life as a Filemaker file and is then converted to a csv file. But I am not aware that the conversion a took place then to a Õ. So these quote marks in filemaker could be not the same as a common ' . Ummmm that's interesting!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > phpMyAdmin replacing ' char with Õ


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway