@ligongzhu,
Regarding WORDSNET-22654, we have completed the work on your issue and concluded that we would not be able to implement any fix for this issue in Aspose.Words API. Your issue (WORDSNET-22654) has now been closed with ‘Won’t Fix’ resolution. The reason is that MS Word does not decode document variables and Aspose.Words should also not. You need to provide expected values. Here is a sample code:
Document document = new Document("C:\\Temp\\233988\\Dis1Test.docx");
addVariable(document, "HOCompleteAddress", "000⅛aaa");
addVariable(document, "OBOFullName", "111ಠbbb");
addVariable(document, "ClaimantFullName", "222ಠccc");
addVariable(document, "OBOCompleteAddress", "333 ddd");
addVariable(document, "ClaimantFullName", "444‑eee");
document.updateFields();
document.save("C:\\temp\\233988\\awjava-21.8.docx");
private static void addVariable(Document document, String key, String value) {
document.getVariables().add(key, org.apache.commons.lang3.StringEscapeUtils.unescapeHtml4(value));
}