Please check out the following code.
BeginPackage["WTF`"] f::usage="blah" Begin["`Private`"] f[x_]:=1(*盘*); End EndPackage
I've save the code to
WTF.wl in VS Code with UTF8 encoding and put the file into the directory
But I failed to load it.
<< WTF` Syntax::sntue: Unexpected end of file (probably unfinished expression) (line 7 of "WTF`").
However, if I delete the culprit
(*盘*), or change it into another Chinese character, or move it before
:=, or even append a space
(*盘 *), then everything works.
My personal guess is that there maybe bugs of dealing with the non-English characters, but I cannot figure out the reasons.
Can someone explain this weird behavior?