Parse error in sonar scanner for TSQL files

Hi,

I was able to rule out the “Invalid character encountered in file at line no for encoding UTF-8” error by changing the encoding to “windows-1252”, but still getting same parse errors for the same files as I was getting when using UTF-8. I suppose the parse errors are not because of encoding and mean something else.

Below is the snapshot of the parse error. As seen, on command line the error is pointed out but in the code there is no invalid character. Any inputs would be really helpful. Thanks.