Welcome Guest, Not a member yet? Register   Sign In
Problems with microsoft word chars cpied to db, and utf8_encode
#1

[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?




Theme © iAndrew 2016 - Forum software by © MyBB