Artifact name has valid non-ASCII character replaced with question mark (?)

Answered

In our build output, we have a directory name with a filename-valid non-ASCII character (é).

It appears correctly when viewing on the Windows 10 build agent in Windows Explorer, Powershell, and the Command Prompt.

However, when the artifact is stored on the server, the é is replaced with a question mark. This reeks havoc, of course, when trying to get dependencies in another build or download the artifacts directly.

Screenshot of the artifact list on TeamCity:

I found the highly related post linked below but decided to create a new post because that one was so old and the solution there is to add "-Dfile.encoding=UTF-8 to CATALINA_OPTS in file <TeamCity dir>/TeamCity/bin/teamcity-server.sh". But we already have this set... "ps -ef|grep java |grep UTF" output includes "-Dfile.encoding=UTF-8".
https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206858575-Artifact-filenames-encoding-problems

1
1 comment
Avatar
Permanently deleted user

The services locale settings were on "C" instead of "C.UTF8".

Changing it to the default of C.UTF8 fixed it.

0

Please sign in to leave a comment.