1 (edited by Shores 2010-01-07 14:51:51)

Topic: Tidy option -1 corrupts UTF-8?

Hi!

I'm using HTMLawed 1.1.9 with these parameters:

$htmLawedConfig["safe"]=1;
$htmLawedConfig["cdata"]=1;
$htmLawedConfig["comment"]=1;
$htmLawedConfig["xml:lang"]=2;
$htmLawedConfig["make_tag_strict"]=2;
$htmLawedConfig["valid_xhtml"]=1;
$htmLawedConfig["tidy"] = -1; //this breaks utf-8 text

If i feed HTMLawed this text, with no tags in it, it returns it broken (the à char is broken):

Novità per Patrol in Lombardia

What am I doing wrong? :)

2

Re: Tidy option -1 corrupts UTF-8?

I copied the test text you have and tried it on the htmLawed demo site. I am not seeing any corruption in the output.

Can you provide some more info? Like, is the htmLawed output processed/passed through something else?