Dave's Brain

Browse - Programming Tips - How can I fix: myfile.java: error: unmappable character for encoding Cp1252

Date: 2016nov26
Language: Java, Ant

Q.  How can I fix: myfile.java: error: unmappable character for encoding Cp1252

A.  Add the encoding to your <javac> statement, in build.xml for example:

<javac ... encoding="utf-8" ... >

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.