简体   繁体   English

如何在Android EditText中使用土耳其语字符?

[英]How can I use Turkish characters in Android EditText?

In my text to speech (For Turkish) project, I have a EditText. 在我的文本到语音(土耳其语)项目中,我有一个EditText。 User can enter Turkish chars (ı, ş, ç, ö), however editText converts them some other unknown chars. 用户可以输入土耳其字符(ı,ş,ç,ö),但editText会将其他一些未知字符转换为其他字符。 How can I prevent this? 我怎么能阻止这个?

Thanks 谢谢

Check out this site. 看看这个网站。 It explains all about the ability of implementing different languages in your app. 它解释了在应用程序中实现不同语言的能力。 It involves providing different string resources for each locale you want to support. 它涉及为您要支持的每个区域设置提供不同的字符串资源。

Click here 点击这里

Locale locale = new Locale("tr");
Locale.setDefault(locale);

Bu gun mende hemin problemle rastlashdim,Chozumu ise budur butun text-ler String.xml faylinin ichinde yazilmalidir

I have started to use Android 2.3.3 and Turkish Language is supported. 我已经开始使用Android 2.3.3并支持土耳其语。 Problem solved 问题解决了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM