diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayService.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayService.java index 9f9327650..f6977d91b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayService.java @@ -696,6 +696,7 @@ public class RelayService extends XWService out.writeShort( BuildConstants.CLIENT_VERS_RELAY ); writeVLIString( out, BuildConstants.GIT_REV ); + // writeVLIString( out, String.format( "€%s", Build.MODEL) ); writeVLIString( out, Build.MODEL ); writeVLIString( out, Build.VERSION.RELEASE ); @@ -1152,9 +1153,10 @@ public class RelayService extends XWService if ( null == str ) { str = ""; } - int len = str.length(); + byte[] bytes = str.getBytes( "UTF-8" ); + int len = bytes.length; un2vli( len, os ); - os.writeBytes( str ); + os.write( bytes, 0, len ); } private void setMaxIntervalSeconds( int maxIntervalSeconds )