Hello,
I am opening up a HTML document using Aspose Word. The HTML document uses apostrophe. Is there a way I can convert apostrophe to a single quote?
Hello,
I am opening up a HTML document using Aspose Word. The HTML document uses apostrophe. Is there a way I can convert apostrophe to a single quote?
Please use the following code example to replace the apostrophe with single quote.
Document document = new Document(MyDir + "in.html");
document.Range.Replace("’", "'", new FindReplaceOptions());
document.Save(MyDir + "output.docx");
Moreover, we suggest you please read the following article. Hope this helps you.
Find and Replace
Thank you. I should have given you a bit more information. The apostrophe was showing up with special character like this: ’. For example, workstation’s looked like this: workstation’s
it appears the HTML did not have the meta charset=“UTF-8” in it. I put that in the HTML and it cleared up the issue.
Could you please ZIP and attach your input document here for testing? We will investigate the issue and provide you more information on it.