-4

i wrote a code which write in a text file a String which contains both a language whose wrote in right to left (like hebrew )and left to right like english

i used unicode code to make it right to left and left to right u'\u2067' + hebrew + u'\u2069' surrounding the part of the hebrew part but it is not working

after running i see that the printing is good as you can see in the picture but when i look in the text file , it changed the positions of each fields and i want that the text file will be the same as the printing

how can i make it the same also in the text file ???

enter image description here

enter image description here

1 Answers1

0

.txt is literally just a plain text editor. There is no formatting on that file. .txt didn't have style formatting like ms word when you saved it, you can load the document with style formatting.

.txt is literally just a plain text editor. You cannot style it like HTML using CSS.