visionmedia/jade — Issue #400: Does Jade support/plan to support UTF-16?
Author: giacecco
Created: 2011-11-07 07:00:57+00:00
State: open

Hi All,
Am I doing something wrong or Jade does not support UTF-16 strings? E.g. the output of the two lines of code below in node.js 0.4.12 comes out prefixed by the 'dirty characters' that are at the beginning of the original buffer, rather than being removed or being translated to some kind of HTML escape code:

foo = require('fs').readFileSync(someUTF16textFile);
console.log(require('jade').compile("p " + foo)());

Thanks!

Giacecco