We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Surrogate characters are not saved in Word

Hi,

I attached a sample project which demonstrates this issue.
Basically, these characters are completely ignored at save time.

To see the codes of these characters, you can search in this link (top middle textbox) for “2000”:
http://macchiato.com/unicode/chart/

Thank you

Hi Adrian

Thanks for your patience. We are working over your query and will get back to you as soon as possible.

Hi Adrian

Thanks for your request. First off, please note that the characters you are trying to insert are not present in regular font. So SimSun-ExtB font must be used. There is a problem with surrogate character in DOCX. If you will save Word document to DOC everything is fine. I have logged your issue as WORDSNET-6348 into our bug tracking system. Your request has also been linked to the appropriate issue. Once we sort it out, we will let you know.

Code snippet:

DocumentBuilder builder = new DocumentBuilder();
builder.Font.Name = "SimSun-ExtB";
builder.Writeln("你好");
builder.Writeln("𠀀");
var doc = builder.Document;
builder.InsertCell();
builder.Write("𠀀");
builder.InsertCell();
builder.Write("𠀁");
builder.InsertCell();
builder.Write("𪛔");
builder.EndRow();
builder.EndTable();
builder.Document.Save("c:/aspose/temp/test175/ooo.doc");
builder.Document.Save(@"C:\temp\tesTest.doc");

We’re sorry for the inconvenience.

The issues you have found earlier (filed as WORDSNET-6348) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.