Problems with microsoft word chars cpied to db, and utf8_encode - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problems with microsoft word chars cpied to db, and utf8_encode (/showthread.php?tid=12878) |
Problems with microsoft word chars cpied to db, and utf8_encode - El Forum - 11-03-2008 [eluser]Rubiz'[/eluser] Hello all! Well, I tried, and tried, and tried... My problem is not with CI, so, I dont know if this post is in the right place... Well, the problem is that I have texts copied from Microsoft Word, and the signals like "-", "“", "”", "‘", "’", and bullet are giving me a big problem, cause I need to use utf8_encode() php function to latin chars show right in browser... These signals from Word are transformed in little boxes with numbers inside, in FF3, and little rectangles in IE6 and 7. I really dont know what to do, cause when I have this line in database "- Products", I right the "-" again, and it works; but when I have str_replace("-", "-", $string), it simply never work... it happen for all signs, it seams that php cant find those chars. But I dont want to replace more than 150 rows one by one :S Anyone has idea about what I could do? |