File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec/net Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8787 * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>
8888 * @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
8989 * @since 1.2
90- * @version $Id: URLCodec.java,v 1.13 2004/01/09 19:02:47 ggregory Exp $
90+ * @version $Id: URLCodec.java,v 1.14 2004/01/09 19:23:53 ggregory Exp $
9191 */
9292public class URLCodec
9393 implements BinaryEncoder , BinaryDecoder ,
@@ -283,7 +283,7 @@ public String encode(String pString) throws EncoderException {
283283 return null ;
284284 }
285285 try {
286- return encode (pString , this .encoding );
286+ return encode (pString , this .getEncoding () );
287287 } catch (UnsupportedEncodingException e ) {
288288 throw new EncoderException (e .getMessage ());
289289 }
@@ -325,7 +325,7 @@ public String decode(String pString) throws DecoderException {
325325 return null ;
326326 }
327327 try {
328- return decode (pString , this .encoding );
328+ return decode (pString , this .getEncoding () );
329329 } catch (UnsupportedEncodingException e ) {
330330 throw new DecoderException (e .getMessage ());
331331 }
You can’t perform that action at this time.
0 commit comments