test_utils_utf8.js (315B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 function run_test() { 5 let str = "Umlaute: \u00FC \u00E4\n"; // Umlaute: ü ä 6 let encoded = CommonUtils.encodeUTF8(str); 7 let decoded = CommonUtils.decodeUTF8(encoded); 8 Assert.equal(decoded, str); 9 }