Menu

#3 SaveString() doesnt use character encoding

open
nobody
None
5
2008-01-13
2008-01-13
Anonymous
No

In Document.cs, the SaveString() method should use the specified output character encoding.

The current code is:

int charenc = (int)TidyWrapper.tidyOptGetInt(tidyDoc, TidyOptionId.OutCharEncoding);
output = buf.ToString();
===

Changing this to:

===
int charenc = (int)TidyWrapper.tidyOptGetInt(tidyDoc, TidyOptionId.OutCharEncoding);
output = buf.ToString(charenc);
===

Respects the character encoding

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.