Unicode characters show as ????? in build output

Sergey Slepov's Avatar

Sergey Slepov

10 Mar, 2017 02:43 PM

Non-Windows-1252 characters, including those in file names, are shown as ????? in build output. Any way to resolve this?

  1. 1 Posted by Sergey Slepov on 10 Mar, 2017 02:44 PM

    Sergey Slepov's Avatar

    Tried executing this command before the build:

    chcp 65001

    Still seeing question marks.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 11 Mar, 2017 02:41 AM

    Ilya Finkelshteyn's Avatar

    Hi Sergey,

    For file content it should worj without chcp if your file is in UTF-8. What is your file format? Can you send some repro file to look at?
    What about file names, it looks like it can be displayed with PowerShell, not sure how to make it with CMD now. Please look at this build: https://ci.appveyor.com/project/IlyaFinkelshteyn/projecta/build/1.2...


  3. 3 Posted by Sergey Slepov on 11 Mar, 2017 10:55 AM

    Sergey Slepov's Avatar

    Hi Iliya,

    Please have a look at this build:


    Specifically lines 34, 35, 53, 57.


  4. 4 Posted by Sergey Slepov on 22 Mar, 2017 07:18 AM

    Sergey Slepov's Avatar

    Hi, is anyone looking at this? How about some priority support for a premium user? Thanks.

  5. Support Staff 5 Posted by Feodor Fitsner on 22 Mar, 2017 05:45 PM

    Feodor Fitsner's Avatar

    Hi Sergey,

    The solution is to "wrap" both chcp and command displaying unicode symbols into separate build.cmd (https://github.com/FeodorFitsner/appveyor-test-1/blob/master/build.cmd) and then run that build.cmd in appveyor.yml (https://github.com/FeodorFitsner/appveyor-test-1/blob/master/appvey...)

    Build results: https://ci.appveyor.com/project/FeodorFitsner/appveyor-test-1/build...

  6. 6 Posted by Sergey Slepov on 22 Mar, 2017 10:30 PM

    Sergey Slepov's Avatar

    Thanks Feodor, that did it. It effectively forced me to switch to using appveyor.yml which I was a bit reluctant to do because there isn't an easy way to switch back, is there?

    Also, why not make CP 65001 the default?

    Thanks again for your help.

  7. Support Staff 7 Posted by Feodor Fitsner on 22 Mar, 2017 11:18 PM

    Feodor Fitsner's Avatar

    Not necessarily you should switch to appveyor.yml. The whole idea is putting chcp command with the rest of commands affected by it into the same .cmd. You can perfectly call this .cmd if configured on UI.

    Regarding making this encoding as default - we don't know how it would affect other projects, so I'd like to deal with that on case-by-case basis :)

  8. 8 Posted by Sergey Slepov on 23 Mar, 2017 06:43 AM

    Sergey Slepov's Avatar

    > You can perfectly call this .cmd if configured on UI.

    Yes, but then I lose my prebuild/postbuild steps.

  9. Support Staff 9 Posted by Ilya Finkelshte... on 23 Mar, 2017 06:15 PM

    Ilya Finkelshteyn's Avatar

    I believe that prebuild/postbuild steps are scripts too, so you can call them in right order as part of build script in UI. But YAML is better anyway after you get used to it.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac