Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit Arabic text/ content at Android Studio editor is almost impossible

It is almost impossible to edit Arabic text in Android Studio!

For example I have the following string-aray:

<string-array name="countries">
        <item> - من خارج فلسطين - </item>
        <item> أذربيجان </item>
        <item> أرمينيا </item>
        <item> أستراليا </item>
        <item> أفغانستان </item>
        <item> ألبانيا </item>
        <item> ألمانيا </item>
        <item> أنتيغوا </item>
...

What I do is that I copy it to notepad, edit it, then paste back again!

It comes a real pain when the list is bigger and it is a major drawback for Android Studio!

like image 921
hannunehg Avatar asked Dec 06 '25 03:12

hannunehg


1 Answers

I think the solution might be to open the string.xml and all other resource files with an external editor since Arabic suport is crappy in android studio.

ٍSo i suggest to select string.xml right click and click show in explorer then open it with your preferred text editor and change whatever you want.

like image 125
Ahmad Moussa Avatar answered Dec 07 '25 18:12

Ahmad Moussa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!