- Home /
How do i detect RTL chars?
Hey, i have a problem when using facebook SDK and integrating it inside my game. everything is great but when querying the names of my facebook friends i have noticed an end case which i did not cover.. wasn't even thinking about this problem.
when a label in the GUI system is set to an arabic or an hebrew name (it prints backwards). I think it's odd that Unity is not covering RTL languages (arabic, hebrew, persian...) issues.
So i though of a little workaround: take the first char in the name and detect if it's an RTL language char. and if it is reversing the facebook name's string before seting the label.
So the question: How do i detect if a char is RTL or LTR?
Thanks alot!
Are there any RTL languages that contain english characters?
What have you tried?
Your answer
![](https://koobas.hobune.stream/wayback/20220612035724im_/https://answers.unity.com/themes/thub/images/avi.jpg)