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

前端 未结 5 1114
别跟我提以往
别跟我提以往 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:11

    Characters ş and s are different characters. Changing locale cannot help you to translate one to another. You have to create turkish-to-english characters table and do this yourself. I once did this for Vietnamic language that has a lot of such characters. You have to deal with 4 of 5, right? So, good luck!

提交回复
热议问题