import org.apache.catalina.util.Base64;
/**
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TestCharSet
{
public static void main(String[] args)
{
Base64 base64 = new Base64();
String temp_p="开会了";
byte[] enbytes =Base64.encode(temp_p.getBytes());
String temp=new String(enbytes);
System.out.println(temp);
String temp1=new String(Base64.decode(enbytes));
System.out.print(temp1);
}
}