I am running my Mocha unit tests like below (with output)
[jiewmeng@JM Tickle]$ cake test-ui
path.existsSync is now called `fs.existsSync`.
hello
��� should pass
��� should pass 2
Home page
��� should have a title of Express (72ms)
��� 3 tests complete (77ms)
As you can see (hopefully), I am having “?” instead of ticks/crosses I’d expect? I think I am missing some fonts? Which are they? I am on Arch Linux
UPDATE
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Font is DejaVu Sans Mono Book
A likely issue is that your encoding is not utf-8.
Try running
localein your terminal. If you support utf-8, you should see something similar to:(I’m on OSX so my output may have more or less variables; the important thing to note is the
en_US.UTF-8values).If not, you may want to try uncommenting (or adding) a line in your config:
Depending on your system, the appropriate config file might be one of:
That will change the encoding for all users, but you could theoretically also just make the change for your user by adding the line to one of:
I may be able to provide more information knowing your system (os, version, etc).
You may also want to see: https://unix.stackexchange.com/questions/22435/how-to-fix-character-encoding-in-bash-arch-linux