Ms word 在C中使用office interop从word文档中读取特殊字符时出现的问题#

Ms word 在C中使用office interop从word文档中读取特殊字符时出现的问题#,ms-word,office-interop,Ms Word,Office Interop,我正在尝试使用Microsoft.Office.Interop.word读取word.DOC中的文本 文本中有一些温度,例如95°F. 当我从Range.Text获取字符串时,它变为95(F 以下是C#代码: private Microsoft.Office.Interop.Word.Application\u wordApp; Microsoft.Office.Interop.Word.Document Word文档 =\u wordApp.Documents.Open(文件名,false,t

我正在尝试使用Microsoft.Office.Interop.word读取word.DOC中的文本

文本中有一些温度,例如95°F.
当我从Range.Text获取字符串时,它变为95(F

以下是C#代码:

private Microsoft.Office.Interop.Word.Application\u wordApp;
Microsoft.Office.Interop.Word.Document Word文档
=\u wordApp.Documents.Open(文件名,false,true);
对于(int tableCounter=1;tableCounter
private Microsoft.Office.Interop.Word.Application _wordApp;

Microsoft.Office.Interop.Word.Document  wordDocument 
                                   = _wordApp.Documents.Open(fileName, false, true);

for (int tableCounter = 1; tableCounter <= wordDocument.Tables.Count; tableCounter++)
{
    var inputTable = wordDocument.Tables[tableCounter];

    for (int cellCounter = 1; cellCounter <= inputTable.Range.Cells.Count; cellCounter++)
    {
        var problemText = inputTable.Range.Cells[cellCounter].Range.Text;
    }
}