Skip to content

Commit f6667a6

Browse files
committed
Use getEncoding().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130285 13f79535-47bb-0310-9956-ffa450edef68
1 parent 22a9850 commit f6667a6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/java/org/apache/commons/codec/net/URLCodec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
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
*/
9292
public 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
}

0 commit comments

Comments
 (0)