What did people do before URLEncode.encode (String s, String enc) arrived in JDK1.4??

From: Soefara (soefararedzuan_at_hotmail.com)
Date: 02/10/04

Date: 10 Feb 2004 08:39:40 -0800

I'm trying to write some Java code to simulate a HTTP request
(either a GET or a POST) and have discovered that Java's
URLEncoder.encode(String s) does not treat double-byte
character sets properly in JDK1.3

I notice that JDK1.4 does contain a new URLEncoder.encode(String s, String enc)
method that takes an encoding parameter but I'm forced to use
JDK1.3 for backwards compatibility reasons.

What did people do back then (in JDK1.3 days) to
URLencode requests which could be a mix of alphanumeric and
double-byte characters ?

Am I the only person still using JDK1.3 and not JDK1.4 or JDK1.5 ?