Skip to content

Problems with encoding #2

@stebrennancode

Description

@stebrennancode

Hi, I'm having problems with using the wrapper and UTF-8 strings. For example "é" would be replaced by �

I was just wondering if I'm doing anything fundamentally wrong? I've tried setting Input and Output character encoding values as well. Any help would be appreciated. Example code below.

Many thanks

using (TidyManaged.Document doc = TidyManaged.Document.FromString(myInput))
{
doc.OutputXhtml = true;
doc.CharacterEncoding = TidyManaged.EncodingType.Utf8;
doc.CleanAndRepair();
myOutput = doc.Save();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions