bidirectional text issues when generating letter from leads

Please can some one direct me to solve bidirectional text issue i am facing when generating letter from leads:

The issue is when using a Unicode letters with numbers the numbers get reversed when the pdf is generated.

example : 20% زيادة is reversed to زيادة %02 the 20% goes to 02% when a Unicode characters are in the same line.

please can some one help i don’t know if its an issue with the pdf parsing or the HTML