Free Support Forum -

Encoding error in the SetLicense method

We have a Danish customer who have purchased a license. The customer has Danish letters in its name in the license file (In the LicensedTo field). The license is included in the resource. When the license is set with the SetLicense(Stream …) method an XmlException occur with the error ‘Invalid character in the given encoding. Line 3, position 20.’. There is the Danish letter ‘æ’ at that position. This error occurs for the version 18.9, 18.8, and 18.7. The newest version that works with the Danish letter is the 18.5.

Can you fix the error, so that we can upgrade to the newest version?


Are you getting this problem with Aspose.Words API?

Please also share your license file via private message. In order to send a private message with attachments, please click on my name and find “Message” button. (see steps). We will then investigate the issue on our end and provide you more information. Please do not share your license file publicly in this thread.

Yes, We are getting this error with the Words API.


Please also ZIP your license file and share the file with .zip extension via private message for testing.


Thank you for sharing your license file. We tested the scenario and have managed to reproduce the same problem on our end. The License.SetLicense threw System.Xml.XmlException on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17465. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Thank you. We are looking forward for the solution.

The issues you have found earlier (filed as WORDSNET-17465) have been fixed in this Aspose.Words for .NET 18.11 update and this Aspose.Words for Java 18.11 update.