Converting String to UTF8?

Lets see what happens when trying to convert random string into UTF8 using different methods. [code lang=”java”] package org.kari.test.string; import java.io.IOException; import java.io.OutputStreamWriter; import java.nio.charset.Charset; import org.apache.log4j.Logger; import org.kari.log.LogUtil; import org.kari.util.DirectByteArrayOutputStream; /** * Test UTF8 conversion * * @author kari */ public class UTF8Test { public static final Logger LOG = LogUtil.getLogger(”utf8”); private static final…

Read more