-1:000000000000 | 0:a992858fdcba |
---|---|
1 /* Any copyright is dedicated to the Public Domain. | |
2 http://creativecommons.org/publicdomain/zero/1.0/ */ | |
3 | |
4 Cu.import("resource://services-common/utils.js"); | |
5 | |
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 } |