Call-911 Posted February 11, 2011 Share Posted February 11, 2011 Hello all, I'm having a problem with people uploading News Articles into my news database. Right now, some of them must be using a weird font to type up their stories, because when they copy/paste their story from Word to the PHP form, it makes the ' turn into the little empty boxes. Also, the same thing is happening to bullets. Any idea how to make ther ' show up correctly, and the bullets to either show, or to convert their bullets to dashes. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/ Share on other sites More sharing options...
atrum Posted February 11, 2011 Share Posted February 11, 2011 Set your document content type to <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1172872 Share on other sites More sharing options...
Call-911 Posted February 14, 2011 Author Share Posted February 14, 2011 That's not working. Any other guesses? It only happens in my text areas stored in my MSSQL databases. It's mostly happening to apostrophes, but bullets do it too. Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174023 Share on other sites More sharing options...
cyberRobot Posted February 14, 2011 Share Posted February 14, 2011 I usually don't have a problem with "smart" quotes from Word, but you could try replacing them. For example, you could replace ’ with '. Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174028 Share on other sites More sharing options...
Jessica Posted February 14, 2011 Share Posted February 14, 2011 Are you using a plain textbox, or a WYSIWYG editor like TinyMCE? Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174126 Share on other sites More sharing options...
Call-911 Posted February 14, 2011 Author Share Posted February 14, 2011 I usually don't have a problem with "smart" quotes from Word, but you could try replacing them. For example, you could replace ’ with '. I think that's exactly it!! How would I do that?? And I am useing a plaintext form I built in HTML, but my client is copy/pasting from MS Word. It needs to be idiot-proof, because the client isn't computer savy. Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174133 Share on other sites More sharing options...
Jessica Posted February 14, 2011 Share Posted February 14, 2011 str_replace Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174135 Share on other sites More sharing options...
Pikachu2000 Posted February 14, 2011 Share Posted February 14, 2011 http://www.google.com/search?q=php+replace+smart+quotes&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Quote Link to comment https://forums.phpfreaks.com/topic/227389-php-convert-bullets-and/#findComment-1174150 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.