Illegal character encoding on Mac

Hi everybody, I’m having a problem that doesn’t let me build my project on Mac and I need some help. I didn’t even found anyone with the same issue.

My project works fine on Windows, but when I try to compile on Mac, I get this error: “illegal character encoding in string literal”.


It’s pretty obvious that the engine is trying to compile using a different encoding on Windows and on Mac. I think it simply shouldn’t. Since it is doing that, is it possible for me to explicit set the encoding to use when compile the source files?

On Xcode, I can select the file that have the issue and set the correct encoding. Then, the Xcode editor shows the text without any problem. But when I compile, the error still happens.

Screen Shot 2017-06-09 at 00.51.00.png

I’m using Xcode 8.3.2 and Visual Studio 2015. I can’t understand why this error happens, since it is UE4 itself that creates the project, build configurations and even the source files.