Use UTF-8 as default charset

This commit is contained in:
Sebastian Kaspari 2010-03-20 15:47:57 +01:00
parent b41017ce93
commit cb7473b93c
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,8 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/
package org.yaaic.irc;
import java.io.UnsupportedEncodingException;
import java.nio.charset.UnsupportedCharsetException;
import java.util.Vector;
import android.content.Intent;
@ -69,6 +71,12 @@ public class IRCConnection extends PircBot
// XXX: Should be configurable via settings
this.setAutoNickChange(true);
try {
this.setEncoding("UTF-8");
} catch(UnsupportedEncodingException e) {
Log.d(TAG, "Unsupported charset - " + e.getMessage());
}
this.setFinger("http://www.youtube.com/watch?v=oHg5SJYRHA0");
}