Ejemplo n.º 1
0
        public void DecodeEscapedPaths()
        {
            const string escaped  = @"file_with_umlauts_\303\244\303\266\303\274.txt";
            const string expected = "file_with_umlauts_äöü.txt";

            var decoded = Decoder.DecodeEscapedBytes(escaped);

            Assert.AreEqual(expected, decoded);
        }
Ejemplo n.º 2
0
        public void FixEncoding()
        {
            // 1252
            const string encoded  = "äöü";
            const string expected = "äöü";

            var decoded = Decoder.DecodeUtf8(encoded);

            Assert.AreEqual(expected, decoded);
        }