0
What should I do If I am programming on java and when my code is running this shows me a message with "compilation error"?
I would appreciate your feedback. :)
3 Answers
+ 6
"Unmappable character for encoding Cp1252" in this code:
https://code.sololearn.com/cmQgvzqno8bZ/?ref=app
...is because you're compiling on an English-language Windows server where console output expects CodePage 1252. In other words, you can't use those characters on this system because the system doesn't know how to encode them.
One possible workaround might be to switch the codepage. I don't have a Java example, but here's one where I fixed Python's output by flipping from CP1252 (Windows Latin-1) to CP850 (DOS Latin-1):
https://code.sololearn.com/c6NQFsmNHz82/?ref=app
Supported Java encodings: https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html
[edited]
+ 1
Thank you so much for your request guys. @luka @Kirk Schafer ^^