Trần Tiến Đức created NET-677:
---------------------------------
Summary: UTF-8 supporting in IMAP
Key: NET-677
URL: https://issues.apache.org/jira/browse/NET-677
Project: Commons Net
Issue Type: Bug
Reporter: Trần Tiến Đức
Hello, I found that the org.apache.commons.net.imap.IMAP uses hardcoded
`__DEFAULT_ENCODING` which is "ISO-8859-1".
Which means every lines read & write are decoded/encoded by "ISO-8859-1". I
wonder is there any way to make my IMAPClient use UTF-8 encoding?
BTW, I had experimented two attempts:
- Create a new MyIMAPClient inheriting IMAPClient and override
`_connectAction_()` to re-assign `_reader` and `_writer` to use UTF-8 encoding
- Copy & Pasting the IMAP and the IMAPClient to my local project, change
`__DEFAULT_ENCODING` to UTF-8
None of above works
Duc Tran
--
This message was sent by Atlassian Jira
(v8.3.4#803005)