Handling files with Japanese names cause error

@shane.findley

Please allow me to share the results of our additional internal investigation.
.NET 6.0 container image does not include Japanese language. We also found that the method of specifying the source code encoding to SonarScanner for .NET was incorrect. After correcting these issues, the error has been resolved. Specifically, we made the following changes

  1. Specify LANG for Locale installation
apt-get update
apt-get install --yes locales-all
export LANG="en_US.UTF-8"
  1. Specify `/d: “sonar.sourceEncoding” as an argument to the dotnet sonarscanner command
dotnet sonarscanner begin .... /d: "sonar.sourceEncoding=UTF-8"

See: youworks / sonarcloud_jpname / Compare — Bitbucket

2 Likes