Search code examples
c#visual-studiolatin

Visual studio doesn't like a particular latin letter - ç


Weird issue here not like anything else I've ever come across so hoping someone else has seen something similar and can point me in the right direction.

In my text editor (Sublime 3) I open the file in question and the code I'm having a problem with in Visual Studio looks like this:

m_TargetApplicationFaçade = new TargetApplicationFaçade

Which is how I would expect it to look, however when I open my .sln project file (sorry if my terminology is wrong - very new to Visual Studio) the same line of code appears like this:

m_TargetApplicationFa鏰de = new TargetApplicationFa鏰de

On trying to build the application Visual Studio errors at these characters - this is a working application which I have just cloned from a Git repo so I shouldn't need to go through changing anything - ie, I'd rather not replace the 'ç' letter, I'd rather figure out why Visual Studio doesn't seem to like it ... if possible!

I'm working on a Mac if that helps!

Hope that all makes sense and is enough information

Any advise welcome

Regards, Neil


Solution

  • Thank you Tanner Swett in the comments for figuring the answer to this one.

    The problem was that the file was incorrectly encoded using Latin-1 - I changed the coding of the file to UTF-8 - I did this in Sublime 3 (a quick Google will give you the answer how to do that) then reopened my project in Visual Studio and the errors were gone! :-)

    Thank you all again!

    N