Arabic Encoding problem in signed Invoice

Hello,

I am getting issue on Arabic text encoding problem ibn xml.

Example:

invoice.xml
cbc:RegistrationNameشركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>

signed-invoice.xml
cbc:RegistrationName??? ??? ??? ??? ??? ??? | Maximum Speed Tech Supply LTD</cbc:RegistrationName>

When I run the command from terminal fatoora -sign -invoice invoice.xml -signedInvoice signed-invoice.xml the signed invoice file worked but when I run same command from java execution process then it will not encode the Arabic text correctly.

Example
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(“fatoora -sign -invoice invoice.xml -signedInvoice signed-invoice.xml”);

the above example return the output like:

cbc:RegistrationName??? ??? ??? ??? ??? ??? | Maximum Speed Tech Supply LTD</cbc:RegistrationName>

Hi @Mayur ,

please make sure that you are using UTF-8

You need to specify character encoding in java, that is when run the java code make sure that the input and output streams use UTF-8 encoding. You can test this using a simple .txt file contains an Arabic sentence and then read the sentence and write it in another file.

I’m also facing the same issue, although my xml document’s encoding scheme is UTF-8.