Merge pull request #113 from standardnotes/encoding-fix

UTF8 Encoding fix
This commit is contained in:
Mo Bitar
2017-05-02 14:41:25 -05:00
committed by GitHub

View File

@@ -90,6 +90,7 @@ class SNCryptoWeb extends SNCrypto {
stringToArrayBuffer(string) {
// not available on Edge/IE
if(window.TextEncoder) {
var encoder = new TextEncoder("utf-8");
var result = encoder.encode(string);