I’m pulling some text from a database, which contains some carriage returns. When I put them straight into html, they get interpreted as � . I’ve tried a bunch of different ways to remove them, but haven’t seemed to have any luck.
Any thoughts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like character encoding conflicts. Other previous suggestions are fine for a quick fix, but if you control the data I think you’d be better off figuring out and sticking to a single character set. If you read from a UTF-8 database and include that text on a website, don’t tell the browser that you’re serving ISO-8859-1 or Windows-1252.