Error: unmappable character (0x8D) for encoding windows-1252

Answered

The curios thing is that only in one machine I've got this error and whenever I use another computer and try to replicate not appear and compiles without any problem.

The file is saved with UTF-8.

I have already changed File Encoding into Settings, but can't solve the error only in that machine.

0
9 comments

Try to delete .idea directory and re-import the project. See also https://blogs.jetbrains.com/idea/2013/03/use-the-utf-8-luke-file-encodings-in-intellij-idea/.

If the issue persists, share a sample project at https://uploads.jetbrains.com.

0

Excellent solution, but know I've got another warning or error, I don't know if this is a block because I only have a test java project with TestNG library:

 

java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.

 

And obviously I didn't use any JPS file.

0

JPS is the name of IntelliJ IDEA build system.

Don't confuse it with JSP.

You can add "-Djps.track.ap.dependencies=true" in Settings (Preferences on macOS) | Build, Execution, Deployment | Compiler | Shared build process VM options or update the annotation processor dependencies to the more recent versions.

 

0

Let me give it a try to this, but currently I'm in Windows, don't know if that's the reason of the message. Thanks Serge

0

It doesn't depend on the OS.

0

I'm not pretty sure if that's because we added Gradle or Maven configurations and whenever I use Gradle build nothing of this appearing just with Maven. Already added that option but the message is still present, maybe just using Gradle to avoid the message.

Thanks Serge by the advices :D

0

What can I do if it worked once but now it's again back?

 

I already deleted .idea folder but now doesn't worked.

Error: unmappable character (0x8D) for encoding windows-1252

0

Set all the encodings in the IDE/project to UTF-8 in case they were reset. If the issue persists, share a sample project at https://uploads.jetbrains.com.

0

I got the similar error “error: unmappable character for encoding Cp1252”. I just Invalidate caches from file menu, and check all checkboxes checked. It fixed the problem

0

Please sign in to leave a comment.