Project Wonder 2.0

er.wopaypal
Class PayPalEmailURLUTF8Encoder

java.lang.Object
  extended byer.wopaypal.PayPalEmailURLUTF8Encoder

public class PayPalEmailURLUTF8Encoder
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.


Constructor Summary
PayPalEmailURLUTF8Encoder()
           
 
Method Summary
static String encode(String s)
          Encode a string to the "special" PayPal version of "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

PayPalEmailURLUTF8Encoder

public PayPalEmailURLUTF8Encoder()
Method Detail

encode

public static String encode(String s)

Encode a string to the "special" PayPal version of "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

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.