diff --git a/CliClient/package-lock.json b/CliClient/package-lock.json index d47f91030..7e2ce3e57 100644 --- a/CliClient/package-lock.json +++ b/CliClient/package-lock.json @@ -2890,6 +2890,11 @@ "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=" }, + "unidecode": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/unidecode/-/unidecode-0.1.8.tgz", + "integrity": "sha1-77swFTi8RSRqmsjFWdcvAVMFBT4=" + }, "uniq": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", diff --git a/CliClient/package.json b/CliClient/package.json index e65bef364..b669ff51c 100644 --- a/CliClient/package.json +++ b/CliClient/package.json @@ -68,6 +68,7 @@ "tar": "^4.4.0", "tcp-port-used": "^0.1.2", "tkwidgets": "^0.5.26", + "unidecode": "^0.1.8", "url-parse": "^1.2.0", "uuid": "^3.0.1", "valid-url": "^1.0.9", diff --git a/ElectronClient/app/package-lock.json b/ElectronClient/app/package-lock.json index fdf1f62f2..b1dcd105f 100644 --- a/ElectronClient/app/package-lock.json +++ b/ElectronClient/app/package-lock.json @@ -6981,6 +6981,11 @@ "random-bytes": "~1.0.0" } }, + "unidecode": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/unidecode/-/unidecode-0.1.8.tgz", + "integrity": "sha1-77swFTi8RSRqmsjFWdcvAVMFBT4=" + }, "union-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", diff --git a/ElectronClient/app/package.json b/ElectronClient/app/package.json index ac3826be5..ecc300ff9 100644 --- a/ElectronClient/app/package.json +++ b/ElectronClient/app/package.json @@ -127,6 +127,7 @@ "syswide-cas": "^5.1.0", "tar": "^4.4.4", "tcp-port-used": "^0.1.2", + "unidecode": "^0.1.8", "url-parse": "^1.4.1", "uuid": "^3.2.1", "valid-url": "^1.0.9", diff --git a/ReactNativeClient/lib/services/InteropService_Exporter_Md.js b/ReactNativeClient/lib/services/InteropService_Exporter_Md.js index 4e667be13..2947ff5cd 100644 --- a/ReactNativeClient/lib/services/InteropService_Exporter_Md.js +++ b/ReactNativeClient/lib/services/InteropService_Exporter_Md.js @@ -4,6 +4,7 @@ const BaseModel = require('lib/BaseModel'); const Folder = require('lib/models/Folder'); const Note = require('lib/models/Note'); const { shim } = require('lib/shim'); +const unidecode = require('unidecode'); class InteropService_Exporter_Md extends InteropService_Exporter_Base { @@ -40,7 +41,7 @@ class InteropService_Exporter_Md extends InteropService_Exporter_Base { } if (item.type_ === BaseModel.TYPE_NOTE) { - const noteFilePath = dirPath + '/' + safeFilename(item.title, null, true) + '.md'; + const noteFilePath = dirPath + '/' + safeFilename(unidecode(item.title), null, true) + '.md'; const noteContent = await Note.serializeForEdit(item); await shim.fsDriver().writeFile(noteFilePath, noteContent, 'utf-8'); }