double quotes appear as ? on website

This is a discussion on double quotes appear as ? on website within the PHP Language forums, part of the PHP Programming Forums category; Hi, I have an Excel file (which is converted to csv by a tool and then uploaded to a MySQL ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2005
nurddin19@yahoo.ca
 
Posts: n/a
Default double quotes appear as ? on website

Hi,

I have an Excel file (which is converted to csv by a tool and then
uploaded to a MySQL database) and then php is used to display the
data on the website.

In the Excel file i have text fields which has data containing double
quotes. They end up appearing at ? question mark on the website. Any
idea how to dispaly the quotes

Should i be carefull of any other invisible characters in Excel which
can mess up the data.
Help me will greatly appreciated.

Thanks,

Nurddin

Reply With Quote
  #2 (permalink)  
Old 01-05-2005
Pedro Graca
 
Posts: n/a
Default Re: double quotes appear as ? on website

nurddin19@yahoo.ca wrote:
> In the Excel file i have text fields which has data containing double
> quotes. They end up appearing at ? question mark on the website. Any
> idea how to dispaly the quotes


Those are "smart quotes" :(

Read http://www.fourmilab.ch/webtools/demoroniser/
and http://brent.epicserve.com/blog.php?id=20

or google for "smart quotes"

> Should i be carefull of any other invisible characters in Excel which
> can mess up the data.


Try viewing the generated file within a DOS/Command Prompt window:

C:\> cd wherever
C:\wherever> type file.csv | more

if I remember correctly.

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0