I need to use a few Cyrillic characters in a Java file and in order for Eclipse to allow me to do so I need to change the encoding for that file (currently to UTF-8).
Are there any problems that this could cause?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the eclipse setting ever gets lost, or the program is built outside eclipse, the cyrillic characters could get corrupted without anyone noticing until the program performs the operations depending on them. This may or may not be an acceptable risk.
Assuming that this is about the program described in this question, a more robust alternative would be to put the cyrillic characters in an external file instead of directly into the source code, and parse that file using UTF-8 explicitly.