Hello I'm appending a RFT text to a Word File, but some characters are not visible, this characters contains a tilde like: áéíóú ÁÉÍÓÚ.
And the text into the document aren't visible.
Can you help me.
Thank you
Document doc = new Document();
Section section = doc.AddSection();
Paragraph para = section.AddParagraph();
String rtfString = @"{\rtf1\ansi\deff0 {\fonttbl {\f0 hakuyoxingshu7000;}}\f0\fs28 áéíóú ÁÉÍÓÚ}";
para.AppendRTF(rtfString);
doc.SaveToFile("Output.docx");
public string TildeReplacement(string Text)
{
Text = Text.Replace("\\`e1", "á");
Text = Text.Replace("\\`c1", "Á");
Text = Text.Replace("\\`e9", "é");
Text = Text.Replace("\\`c9", "É");
Text = Text.Replace("\\`ed", "í");
Text = Text.Replace("\\`cd", "Í");
Text = Text.Replace("\\`f3", "ó");
Text = Text.Replace("\\`d3", "Ó");
Text = Text.Replace("\\`fa", "ú");
Text = Text.Replace("\\`da", "Ú");
Text = Text.Replace("\\`fc", "ü");
Text = Text.Replace("\\`dc", "Ü");
Text = Text.Replace("\\`f1", "ñ");
Text = Text.Replace("\\`d1", "Ñ");
return Text;
}