aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/writer.js
diff options
context:
space:
mode:
authorDiPeng2011-08-01 08:42:32 -0700
committerIgor Minar2011-08-03 16:50:25 -0700
commit4f6e947e494c2c574b02cfb87b9b9bba29148737 (patch)
treefa6ec85dab8d9c9b2ef04c0e8c243974777593d5 /docs/src/writer.js
parent15efbbdc1fe42f914e6442b32ffc032a4cc8e792 (diff)
downloadangular.js-4f6e947e494c2c574b02cfb87b9b9bba29148737.tar.bz2
fix(docs): fix qfs.read() encoding issue
- must use binary reading when using read function in q-fs module otherwise some unicode character may be garbled. Closes #497
Diffstat (limited to 'docs/src/writer.js')
-rw-r--r--docs/src/writer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/writer.js b/docs/src/writer.js
index 1acf9df7..b33e4164 100644
--- a/docs/src/writer.js
+++ b/docs/src/writer.js
@@ -83,7 +83,7 @@ function merge(srcs, to) {
srcs.forEach(function (src) {
done = Q.when(done, function(content) {
if(content) contents.push(content);
- return qfs.read(src);
+ return qfs.read(src, 'b');
});
});