Arabic/Persian text lines are reversed

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TSina

Hey
When i Try To Write Arabic/Persian In The Label, The Label Shows Lines Reversed

Why is this Happening? and How Can i Fix It?
I Tried ways like reversing Words, Letters etc but doesn’t work.
And I Should add That I Tried Both From Code and From Engine, But they have Same Problem
Tnx

:bust_in_silhouette: Reply From: Fazel87

Hey!
This is the problem of Godot not supporting Persian/Arabic
You can use stable Godot (version 4.0 stable) which supports RTL languages.
Of course, you can split your string with ‘\n’ and reverse the resulting array.

var str= "سلام\nخوبی؟"
print(str)
var str_array = str.split("\n")
str_array.reverse()
print(str_array.join("\n"))

Good luck!