Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Fixed a bug in node io api preventing reading text files

uggrockee25e03a2af9
diff --git a/data/js/ioapi.node.js b/data/js/ioapi.node.js
index 6ff9e8d68..177e324d0 100644
--- a/data/js/ioapi.node.js
+++ b/data/js/ioapi.node.js
@@ -133,7 +133,7 @@ define(function(require, exports, module) {
exports.loadTextFile = function(filePath) {
console.log("Loading file: "+filePath);
- fs.readFile(filePath, function(error, content) {
+ fs.readFile(filePath, 'utf8', function(error, content) {
if (error) {
console.log("Loading file "+filePath+" failed "+error);
return;