Setting Turkish and English locale: translate Turkish characters to Latin equivalents

前端 未结 5 1184
别跟我提以往
别跟我提以往 2021-02-04 02:29

I want to translate my Turkish strings to lowercase in both English and Turkish locale. I\'m doing this:

String myString=\"YAŞAT BAYRI\";
Locale trlocale= new Lo         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 03:27

    you can do that:

    Locale trlocale= new Locale("tr","TR");
    

    The first parameter is your language, while the other one is your country.

提交回复
热议问题