Page 1 of 1

[] replacing quotes and single quotes

Posted: Wed Dec 10, 2008 12:13 am
by cmartin19
Hello, I'm writing data to a mysql table and using the nl2br() function to convert new lines to <br/> so the browser can display the new lines properly when the data is sent to the browser. The problem is all double quotation and single quotation marks show up as � instead of the quotation marks that were originally entered into the database using textarea. Is there a function in php that will convert the small boxes back to the proper quotation marks when the data is queried and displayed in the browser? Thanks, cm 8O

Re: [] replacing quotes and single quotes

Posted: Wed Dec 10, 2008 1:55 am
by jaoudestudios
dont use nl2br() before you go to the database, use it when you display the info to the screen!