Write the Arabic text in the text box to the file in Java
•
Java
I have a program where users can enter Arabic text in the text area The direction of Arabic text is from right to left. When I write text to a file, the direction of text changes from left to right Can I write Arabic text to a file from right to left?
Solution
Inverts the text in memory and writes it to disk Reverse
@H_ 403_ 12@
@H_ 403_ 12@
StringUtils.reverse(str)
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码