The scanner logs are the same logs from the TeamCity output of logs during your build. Look for the keyword “project key” and search the output from your build and that is where you scanner logs are.
Thank you for your reply. I found the line which caused the warning. So I tried several JVM parameters like -Dsonar.sourceEncoding=utf-8, -Dsonar.jproperties.sourceEncoding=ISO-8859-1 and etc. Unfortunately, the warning is still there.
Actually, Its a commented thing (special character) that causes the warning
You will probably need to go into the file within your IDE and change the file encoding in there. Google search how to change file encoding of a file in your IDE of choice, then try a sonar analysis in addition to setting the sonar.sourceEncoding parameter.
In the worst case, just delete that character, which looks like an apostrophe.