Hi !!
We have named projects in Spanish, but when running the analysis with Bitbucket Pipelines (Sonar-Scanner), it doesn’t detect the rare characters (accents or “ñ”)
EXAMPLE OF NAME: Rubén España
Our bitbucket-pipelines.yml is:
clone:
depth: 1
pipelines:
custom:
test:
- step:
caches:
- sonarcloud
script:
- export LANG=en_US.UTF-8
- export LC_ALL=C
- curl --insecure -OL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
- unzip sonar-scanner-cli-3.2.0.1227-linux.zip
- ./sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$<TEST> -Dsonar.organization=<TEST>
definitions:
caches:
sonarcloud: ~/.sonar/cache
and the sonar-project.properties configuration file is:
sonar.projectKey=<KEY>
sonar.projectName=Rubén España
sonar.sources=<SOURCES>
sonar.language=php
sonar.sourceEncoding=UTF-8
We have tried all these scripts, but it does not work either:
script:
- export LANG = en_US.UTF-8
- export LANG = en_US.UTF-8
- export LC_ALL = C
Then in the analysis with Sonar-Scanner, the information always comes out: “Scan… Rub??n Espa??a”
How could we set the image/environment or the analysis to detect the name of the project correctly?
Thank you!!
Kind Regards,
Rubén Recacha