matthewdl/Crunch — Issue #8: Problem with text encoding
Author: matthewdl
Created: 2011-12-05 17:26:44+00:00
State: open
Labels: Bug

It appears there's some issue with writing / reading text files in Crunch, specifically in relation to encoding.

This surfaced when trying to convert Inuit CSS to LESS (http://csswizardry.com/inuitcss/). Doing some testing right now, I think it may have something to do with the fact that Crunch writes UTF just fine, but uses AIR to determine file encoding when reading back. This was done to try to avoid reading in a text file with the wrong encoding, but it could be that AIR is reporting encoding incorrectly, or there's some other issue.

In any case, the file is encoded correctly ON DISK, it just imports incorrectly into Crunch (things like smart quotes), and a subsequent save will then write the scrambled text into the file (not good).

Will address soon, although I'd welcome help.