Thanks for your posting and using Aspose.Cells for Java.
We have looked into your issue and found that Aspose.Cells for Java does show this problem. The same code works fine on the .NET version.
Please see the following sample code in C# and Java. I have attached the .NET and Java version output csv files and screenshot for your reference.
We have logged this issue in our database. We will look into it and fix this issue and once there is some update for you, we will let you know asap.
This issue has been logged as CELLSJAVA-40357.
Workbook workbook = new Workbook();
workbook.Settings.Encoding = Encoding.UTF8;
Worksheet worksheet = workbook.Worksheets;
worksheet.Cells[“A1”].PutValue(“مرحبا بكم في مكة المكرمة”);
worksheet.Cells[“B1”].PutValue(“تعلم اللغة العربية”);
Worksheet worksheet = workbook.getWorksheets().get(0);
worksheet.getCells().get("A1").putValue("مرحبا بكم في مكة المكرمة");
worksheet.getCells().get("B1").putValue("تعلم اللغة العربية");
We have fixed this issue.
Please download and try this fix: Aspose.Cells for Java v18.104.22.168 and let us know your feedback.