        OutputStream out = getOutputStream();
 -      out.write(command.getBytes("ASCII"));
 +      //out.write(command.getBytes("ASCII"));
-+      out.write(command.getBytes("UTF-8")); // wtm
++      out.write(command.getBytes("UTF-8")); // wtm for FatICS
        out.write('\n');
        out.flush();
      } catch (IOException e){
-@@ -471,6 +473,7 @@
+@@ -471,44 +473,56 @@
    protected Object readMessage(InputStream inputStream) throws IOException{
      PushbackInputStream pin = (PushbackInputStream)inputStream;
      StringBuffer buf = new StringBuffer();
-+    //InputStreamReader reader = new InputStreamReader(pin, "UTF-8"); 
++    //XXX could use this instead? InputStreamReader reader = new InputStreamReader(pin, "UTF-8"); 
++    ByteArrayOutputStream out = new ByteArrayOutputStream();
      
      boolean lineStartsWithPrompt = false;
      while (true){
-@@ -483,12 +486,15 @@
+       int b = pin.read();
+       
+       if (b < 0){
+-        if (buf.length() == 0) // Clean disconnection
++        if (out.size() == 0) // Clean disconnection
+           return null;
+         break;
        }
              
        // End of line

retrieving revision 1.2
diff -u -r1.2 server_support.php
--- release/applet/server_support.php	24 Feb 2008 02:16:28 -0000	1.2
+++ release/applet/server_support.php	6 Jan 2011 04:16:34 -0000
@@ -12,7 +12,8 @@
 	
 	// Returns the port to which the applet should connect
 	function getPort(){
-		return 5001;
+		//wtm return 5001;
+		return 5000;
 	}
 	
 	
@@ -39,4 +40,4 @@
 			return null;
 	}
 		

retrieving revision 1.13
diff -u -r1.13 TextUtilities.java
--- src/free/util/TextUtilities.java	16 Mar 2008 01:17:00 -0000	1.13
+++ src/free/util/TextUtilities.java	6 Jan 2011 07:15:13 -0000
@@ -295,7 +295,8 @@
    */
   
   public static String getDefaultCharsetName(){
-    return getDefaultCharset().name();
+    //return getDefaultCharset().name();
+    return "UTF-8"; // wtm
   }
   
   
@@ -310,9 +311,10 @@
   
   public static String convert(String s, String fromEncoding, String toEncoding)
       throws IllegalArgumentException{
-    
     if ((fromEncoding == null) || (toEncoding == null))
       return s;
+   //if (fromEncoding == toEncoding)
+   //  return s;
     
