Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 Cu.import("resource://services-common/utils.js");
6 function run_test() {
7 let str = "Umlaute: \u00FC \u00E4\n"; // Umlaute: ü ä
8 let encoded = CommonUtils.encodeUTF8(str);
9 let decoded = CommonUtils.decodeUTF8(encoded);
10 do_check_eq(decoded, str);
11 }