Openfire 3.9.3 Javadoc

org.jivesoftware.openfire.clearspace
Class URLUTF8Encoder

java.lang.Object
  extended by org.jivesoftware.openfire.clearspace.URLUTF8Encoder

public class URLUTF8Encoder
extends Object

Provides a method to encode any string into a URL-safe form. Non-ASCII characters are first encoded as sequences of two or three bytes, using the UTF-8 algorithm, before being encoded as %HH escapes. Created: 17 April 1997 Author: Bert Bos <bert@w3.org> URLUTF8Encoder: http://www.w3.org/International/URLUTF8Encoder.java Copyright © 1997 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. This work is distributed under the W3C® Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231


Constructor Summary
URLUTF8Encoder()
           
 
Method Summary
static String encode(String s)
          Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUTF8Encoder

public URLUTF8Encoder()
Method Detail

encode

public static String encode(String s)
Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal. This is what happens:

Parameters:
s - The string to be encoded
Returns:
The encoded string

Openfire 3.9.3 Javadoc

Copyright © 2003-2008 Jive Software.