AFAIK this behaviour is implementation dependent. There are a set of languages like Hebrew, Arabic etc where letters are written from right to left. And this shall be handled by the phones implementation. Here is a similar discussion with regarding to Arabic charectors.
>>Can I detect some way this behaviour?
IMHO what you can do is to get the current language code with
and if the language code returned is of a language to be written from right to left(eg:Hebrew, Arabic) then do the necessary action.