You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by 이왕석 <se...@gmail.com> on 2015/01/16 15:12:44 UTC

In FTP.java, i18n not supported.

My project is to make android app include ftp client function, so I use
Apache Commons net library.

English encoding is not problem. but when I use korean, encoding is broken.

I think FTP.java source code, 417 line, should have to update.

"setControlEncoding(String encoding)" function changes "_controlEncoding"
member variable, but "_controlOutput_" member variable's encoding is not
changed.

So, please check this code. Have a good day :)

Re: In FTP.java, i18n not supported.

Posted by sebb <se...@gmail.com>.
On 16 January 2015 at 14:12, 이왕석 <se...@gmail.com> wrote:
> My project is to make android app include ftp client function, so I use
> Apache Commons net library.
>
> English encoding is not problem. but when I use korean, encoding is broken.
>
> I think FTP.java source code, 417 line, should have to update.

> "setControlEncoding(String encoding)" function changes "_controlEncoding"
> member variable, but "_controlOutput_" member variable's encoding is not
> changed.

Setting the variable just stores the value.

You have to do this before the control streams are created.

> So, please check this code. Have a good day :)

For further NET usage help, please subscribe to the Commons User list
and ask there.
Remember to start the subject line with

[NET]

e.g.

[NET] How do I ... ?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org