Special Characters in comments.

While investigating an issue I am having, I ran across something interesting.
Apparently, Unity cannot handle some special characters.
The character in question, is ³, which causes this to happen when trying to inspect a script containing the character in a comment:

This has another issue, in that when I run a script modification asset on it, it causes issues when I copy the contents of the script over to a backup file (a scriptable object). In general, it just seems that the compiler, or what ever, is incapable of processing a string containing the character. Why is this?

In which Unity version? In 2017.2p4, I’m having no issue displaying this text in the inspector, or putting it in a comment in the script. You might try going into Edit → Project Settings → Editor and changing the asset serialization to “force text” and see if that helps.

I am using Unity 2017.1.1p2.

Well, that gets the inspector showing something at least!
3359442--263037--2018-01-18_16-01-57.jpg

I’m unfortunately unable to reproduce this. The only suggestion I have is to try saving the script itself with different encodings (in Visual Studio, Advanced Save Options → UTF8 With Signature, or Unicode).

Even more confounding!
I just tried to make a comment, and copied and pasted the ³, from the OP into it, and… it works just fine.
Why then, does the original ³ in the code produce this kind of effect?:face_with_spiral_eyes:

I tried it in both Visual Studio, and Jet Brain’s Rider, with different results.
Rider simply can’t process it, resulting in a � symbol.
3359510--263043--2018-01-18_13-57-55.jpg

VS will actually display the ³, however in both cases, Unity still refuses to display the script in the inspector unless I take it out.