Android Question Text.ToUpperCase for Turkish characters

texwillerx

Member
Licensed User
Longtime User
I have a program which uses ToUpperCase function. The function behaves differently according to the language of the system.

When the language for the Android is English, the

ToUpperCase("Lisan")

returns LISAN ("i" is uppered as "I"). But, when the language is set to Turkish, it returns "LİSAN" ("i" is uppered as "İ" which is dotted I of Turkish), which is correct for Turkish, but wrong for English.

The interesting thing is that, this happens only when the program first started.

When the program is "Paused" and "Resumed", the function returns "LISAN" even for Turkish system language.

Please inform me how can I force the ToUpperCase function to return the result as English, independent of the system language.

Regards
 

texwillerx

Member
Licensed User
Longtime User
Thank you very much for your reply, Erel. It worked perfectly.

One thing to mention is that, the RunMethod should be called as

jo.RunMethod("setDefault", Array As Object(jo.GetField("US")))

otherwise the compiler gives an error

... 'as' expected.

Regards.
 
Upvote 0
Top