Unexpected character error while building the project in a docker container
I'm creating an image of an ASP.NET CORE application that has dependency to a multiple projects not only inside the same solution but also use another class libraries in another solutions
I copied the project's file, and the .sln
files,it restore all the projects, however, when I attempt to build the project in a docker container an Error is encountered that prints the following message:
The Error that is Occurring, is "CS 1056"
error CS1056: Unexpected character '�'
Hint : the same error occur when i open the project using VS code
That makes sense, because there is 'obviously' a character that VS code can't decode.
After troubleshooting for a while, I found that the character causing the issue is ä (and German letter in general ü ä ß ...).
what is the way to build the project inside a docker container and avoid that error ?
I only want to build the project in a docker container correctly by the way if I build the project using powershell in Host windows OS it builds correctly with no problem .
Thanks