Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i download english format there will be output clearly view printedon date is correct......but when choose arabic language date view incorrectly......

What I have tried:

HTML
<div style="font-family: Calibri !important; color: rgba(0, 0, 0, 0.54); font-size: 11px; line-height: 0; text-align: left">"
                                        + "<span style="margin-left: 15px"> printed On: "+ DT + "<span style="margin-left: 20px">  User: Admin   </span></span>"
                                        + "<div style="text-align: center">© Orchid</div>"
                                    + "</div>
Posted
Updated 1-Oct-20 9:55am
v2
Comments
Richard Deeming 1-Oct-20 6:51am    
There's a secret error somewhere in your secret code. You should fix that.

1 solution

Unlike European languages, Arabic is written right-to-left. the DT string is presumably in the correct order for right-to-left printing, but you are printing it left-to-right.

See <bdo>: The Bidirectional Text Override element - HTML: HyperText Markup Language | MDN[^] for more details. Note the <span dir="rtl"> and the <bdo dir="ltr"> tags.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900