In my project, that should post turkey country name as "TÜRKİYE" with uppercase letter to the web server. But it doesn't work when I change device language to English. Because It post "TÜRKIYE". Uppercase I. I must fix it and it should post "İ". How can I do this?
String from1 = textV_fromCity_ac_search.getText().toString();
String to1 = textV_toCity_ac_search.getText().toString();
if (isValidData() && isValidDate() && hasSessionId()) {
Intent intent = new Intent(SearchActivity.this, ResultActivity.class);
intent.putExtra("SessionId", User.getInstance().getSessionId());
intent.putExtra("PassengerNumber", textV_passenger_number.getText().toString());
String[] dataX = getResources().getStringArray(R.array.cities);
for (String aDataX : dataX) {
if (aDataX.equals(textV_fromCity_ac_search.getText().toString() + " (Türkiye)")) {
from1 = aDataX;
} else if (aDataX.equals(textV_toCity_ac_search.getText().toString() + " (Türkiye)")) {
to1 = aDataX;
}
}
intent.putExtra(MyConstants.BUNDLE_FROM, from1);
intent.putExtra(MyConstants.BUNDLE_TO, to1);
intent.putExtra(MyConstants.BUNDLE_ISDOMESTIC, from1.toUpperCase().contains("TÜRKİYE") && to1.toUpperCase().contains("TÜRKİYE"));
startActivity(intent);
}