If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Imporing Euro sign

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-08, 06:33
Muiter Muiter is offline
Registered User
 
Join Date: Dec 2008
Location: Netherlands
Posts: 56
Question Importing Euro sign

I have script where people can inser values strarting with a € sign. This works very good. Now I've import thry phpMyadmin a lot of values and all are changed to ?
What went wrong and how can I change this? I think the best way is to write a script in php with a certain sql query but how shouls this query look?

Last edited by Muiter; 12-31-08 at 07:53. Reason: spellcheck
Reply With Quote
  #2 (permalink)  
Old 12-31-08, 07:16
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
What is the datatype of the column you are using?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 12-31-08, 07:53
Muiter Muiter is offline
Registered User
 
Join Date: Dec 2008
Location: Netherlands
Posts: 56
Quote:
Originally Posted by georgev
What is the datatype of the column you are using?
I'm using latin1 and I've tried utf8.
Reply With Quote
  #4 (permalink)  
Old 12-31-08, 08:04
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
try switching to nvarchar
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 12-31-08, 08:06
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
is this a web application or a traditional application
if its a web application you may be better off converting the euro symbol to its web safe code €

its possible that PHPMyAdmin, or your copy, is only ascii aware and not fully international

what is making you import through PHPMyAdmin... there may be another route (one that I've used in the past is to upload a flat file and then import using a PHP script)
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #6 (permalink)  
Old 01-01-09, 14:21
Muiter Muiter is offline
Registered User
 
Join Date: Dec 2008
Location: Netherlands
Posts: 56
Quote:
Originally Posted by georgev
try switching to nvarchar
I can't find that option

Quote:
Originally Posted by healdem
what is making you import through PHPMyAdmin... there may be another route (one that I've used in the past is to upload a flat file and then import using a PHP script)
Just a one time story so that's why I'm using MySQL.

I changed all my values for now with:
Code:
UPDATE factuurnummers SET bedrag_excl = REPLACE(bedrag_excl, '?', '€')

Last edited by Muiter; 01-01-09 at 14:26.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On