Package com.fasterxml.storemate.shared.util

Examples of com.fasterxml.storemate.shared.util.UTF8UrlEncoder.decode()


    public void testDecoding()
    {
        UTF8UrlEncoder enc = new UTF8UrlEncoder(true);

        // slash handling
        assertEquals("here/then", enc.decode("here/then"));
        assertEquals("here/then", enc.decode("here%2Fthen"));
       
        // non-ASCII:
        assertEquals("This: \u00A9...", enc.decode("This%3A+%C2%A9..."));
        assertEquals("test/Stuff-\u00A9", enc.decode("test/Stuff-%C2%A9"));
View Full Code Here


    {
        UTF8UrlEncoder enc = new UTF8UrlEncoder(true);

        // slash handling
        assertEquals("here/then", enc.decode("here/then"));
        assertEquals("here/then", enc.decode("here%2Fthen"));
       
        // non-ASCII:
        assertEquals("This: \u00A9...", enc.decode("This%3A+%C2%A9..."));
        assertEquals("test/Stuff-\u00A9", enc.decode("test/Stuff-%C2%A9"));
    }
View Full Code Here

        // slash handling
        assertEquals("here/then", enc.decode("here/then"));
        assertEquals("here/then", enc.decode("here%2Fthen"));
       
        // non-ASCII:
        assertEquals("This: \u00A9...", enc.decode("This%3A+%C2%A9..."));
        assertEquals("test/Stuff-\u00A9", enc.decode("test/Stuff-%C2%A9"));
    }
}
View Full Code Here

        assertEquals("here/then", enc.decode("here/then"));
        assertEquals("here/then", enc.decode("here%2Fthen"));
       
        // non-ASCII:
        assertEquals("This: \u00A9...", enc.decode("This%3A+%C2%A9..."));
        assertEquals("test/Stuff-\u00A9", enc.decode("test/Stuff-%C2%A9"));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.