michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: Cu.import("resource://services-common/utils.js"); michael@0: michael@0: function run_test() { michael@0: let str = "Umlaute: \u00FC \u00E4\n"; // Umlaute: ü ä michael@0: let encoded = CommonUtils.encodeUTF8(str); michael@0: let decoded = CommonUtils.decodeUTF8(encoded); michael@0: do_check_eq(decoded, str); michael@0: }