Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Troubleshooting

aslakhellesoy edited this page Aug 13, 2010 · 30 revisions

Cucumber not ripe? Can’t find your peeler? These are some common problems people have experienced. -And how to address them.

Console output isn’t right on Windows

Missing a characters in the output? Do your æøå characters print like garbled Commodore 64 characters? There are three steps to fix this.

First – add require 'cucumber/formatters/unicode' to your env.rb file.

Second – set your command window’s font to a font that has the characters you’re outputting – for example Upper Left corner icon menu → Properties → Font → Lucida Grande.

Third – in your command prompt, change the codepage:

chcp 1252

Now you should be able to get aæøå in your output on Windows.

Note that 1252 is not UTF-8 – it’s essentially Latin1. You can also try to set it to 65001, which is UTF-8, but this has the unfortunate side effect of temporarily neutering all your computer’s bat files so they cannot be executed (including cucumber.bat and rake.bat).

For more info, see Lighthouse issue #81

Clone this wiki locally