'Question marks instead of special characters when running cypress on ubuntu instance
I am using an ubuntu instance to run my cypress tests to offload the computation load. But the special characters are coming out as ?. For example, running npx cypress run on my own machine gives:
┌─────────────────────────────────────────────────────────────────────────┐
│ Cypress: 5.6.0 │
│ Browser: Electron 85 (headless) │
│ Specs: 11 found (my spec files here) │
└─────────────────────────────────────────────────────────────────────────┘
But on my ubuntu instance, I get this:
????????????????????????????????????????????????????????????????????????????????
? s: 0 ?
? Video: true ?
? Duration: 33 seconds ?
? Spec Ran: connections/connectionstable.spec.js ?
????????????????????????????????????????????????????????????????????????????????
I know this is a totally cosmetic thing, but its bothering me. The ✓ and x characters also show up as ?, though they do indeed show up in the correct colors (green and red).
I am using an openstack instance with a company-internal ubuntu image, but I don't see a whole lot of info to put here about the image, just that its 2021.
I tried putting export LC_CTYPE=en_US.utf8 in the terminal, and adding it to the .bashrc, as suggested in Foreign characters won't display in SSH
, but that doesn't seem to make any difference.
Solution 1:[1]
I was able to fix that, in my case I was running the cypress through a Gradle task in IntelliJ. I had to edit the Gradle configuration run and set the: Environment Variable to: LC_CTYPE=UTF-8
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | B. Shefter |

