AndroidAndroid Studio

Unmappable character for encoding UTF-8 in Android Studio

After importing project from eclipse into Android Studio i have got the following error Unmappable character for encoding UTF-8

Error: unmappable character for encoding UTF-8

Solution for Unmappable character for encoding

To fix this issue, in Android Studio, Open the File with the encoding issue. Go to File menu-> Select File Encoding ->
Unmappable character 1
You’ll see a Drop down list of different Encodings, Select more ->
file_encode2

then Select UTF-8.

and then you will see a dialog with Reload and Convert buttons, Select Convert option.

Unmappable character
and build the project.

Solves the issue

Another way to change File Encoding is,  You can see at the right bottom menu as shown in below image, click on it; displays a list of encodings. then just follow above steps…
file_encode7

And To convert File Encoding for whole project, Select Settings icon in menu bar
file_encode5

On left Panel  Goto Project Settings -> select File Encodings -> change the Project Encoding to UTF-8

Unmappable character 6

Hope it helps somebody…

Cheers (Y)

You may also interested in

 

3 thoughts on “Unmappable character for encoding UTF-8 in Android Studio

Leave a Reply

Your email address will not be published. Required fields are marked *