Eclipse

For using Korean or Special characters in Eclipse editor Cp1252 character encoding issue

Eclipse editor Cp1252 character encoding issue

When you assigned a Simple korean text to a String variable. And try to Save the Jave file, You may see following error. The error says Some characters cannot be mapped using “Cp1252” character encoding. Either change encoding or remove the characters which are not supported by the Cp1252 character encoding

"Cp1252" character

Eclipse editor default character encoding is cp1252. Which doesn’t allow special characters. To solve this issue you have to change Character encoding.

Solution:

You can change the character encoding by

right clk on Project-> Properties -> Go to Resource ->

encode_error-sol1

See Text file encoding -> Select Other and change to UTF-8 -> Apply

encode_error-sol2

Now you can save the file with Korean or any language special character text.

Hope this helps somebody.

🙂

You may be also interested in

 

Leave a Reply

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