weird characters for apostrophes? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: weird characters for apostrophes? (/showthread.php?tid=26182) |
weird characters for apostrophes? - El Forum - 01-07-2010 [eluser]dadamssg[/eluser] Im pulling stuff out of my db to display. Some of my entries have apostrophes, but when i pull them out and display them they are changed to this ’57 . How do i change this back to apostrophes?? controller Code: <?php main_view.php Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> weird characters for apostrophes? - El Forum - 01-07-2010 [eluser]theprodigy[/eluser] I'm thinking the apostrophes in your database may not be apostrophes but "slanted apostrophes", like MS Word and some other text editers convert them to. Go through your database and make sure that they are in fact real apostrophes. weird characters for apostrophes? - El Forum - 01-07-2010 [eluser]dadamssg[/eluser] good thought but im sure they are apostrophes weird characters for apostrophes? - El Forum - 01-09-2010 [eluser]Greg Aker[/eluser] Try setting your charset to utf-8: Code: <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |