turkish character encoding in android -
i have problem turkish characters in android studio. clicked file > settings. default encoding, ide , project encoding windows-1254. still wrong characters in code.
my wrong code :
public void showalertexit() { alertdialog.builder alertbox = new alertdialog.builder(this); alertbox.settitle("��k��"); alertbox.setcancelable(false); alertbox.setmessage("��k�� yapmak istedi�inize emin misiniz?"); alertbox.setnegativebutton("hay�r",new dialoginterface.onclicklistener() { public void onclick(dialoginterface arg0, int arg1) { arg0.cancel(); } }); alertbox.setpositivebutton("evet",new dialoginterface.onclicklistener() { public void onclick(dialoginterface dialog, int arg1) { intent = new intent(getapplicationcontext(),login.class); startactivity(i); } }); alertdialog alert = alertbox.create(); alert.show(); }
i clicked "invalidate caches/restart" still wrong. if "right click -> file encoding -> windows-1254 -> convert -> convert anyway", code seem :
public void showalertexit() { alertdialog.builder alertbox = new alertdialog.builder(this); alertbox.settitle("??k??"); alertbox.setcancelable(false); alertbox.setmessage("??k?? yapmak istedi?inize emin misiniz?"); alertbox.setnegativebutton("hay?r",new dialoginterface.onclicklistener() { public void onclick(dialoginterface arg0, int arg1) { arg0.cancel(); } }); alertbox.setpositivebutton("evet",new dialoginterface.onclicklistener() { public void onclick(dialoginterface dialog, int arg1) { intent = new intent(getapplicationcontext(),login.class); startactivity(i); } }); alertdialog alert = alertbox.create(); alert.show(); }
please me :(
Comments
Post a Comment