i am making a CLI app in rust, and the app includes multiple languages. one of those languages is hebrew, which is a RTL language. when writing in hebrew, for example:
println!("קוד לדוגמא");
it comes out as
אמגודל דוק
which is the original message in reverse.
i know i can just write the text and reverse, and then it works, but i have a lot of text to write, and i don't want to have any side effects from this. is there any library or configuration in rust in order to write RTL text?
it seems that anything that emulates a terminal does this bug. This depends on the editor, but you should have to option to just display the result instead of emulate a commandline. on rustrover just go into your "run/debug configurations" and turn off "emulate terminal in output console". this also worked on other jetbrains products, but i haven't tested on all of them.