troubleshooting Question

PHP Tidy - How to stop it changing non English characters

Avatar of fearialtog
fearialtog asked on
PHPMySQL Server
3 Comments1 Solution617 ViewsLast Modified:
I am tidying up some old html files and storing parts of them in a mysql database. PHP tidy does a great job but it changes not English characters to their html equivalent. e.g. í becomes í etc. I know it is good html but I want the database to be clean text (utf8)
(I can easily convert it to html on the way back out)

I have tried to configure Tidy to use UTF8 encoding

$config = array( "char-encoding" => "utf8");

Alas to no avail.
Is it possible to get tidy to ignore these special characters?


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros