From 90135445c8833ff11a31bf37fa09a0b265904b55 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 18 Dec 2005 22:10:13 +0000 Subject: byte[] <--> String with latin 1 alias ISO-8859-1 --- src/jake2/qcommon/MSG.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jake2/qcommon/MSG.java') diff --git a/src/jake2/qcommon/MSG.java b/src/jake2/qcommon/MSG.java index 4d5332b..99f9e1c 100644 --- a/src/jake2/qcommon/MSG.java +++ b/src/jake2/qcommon/MSG.java @@ -19,7 +19,7 @@ */ // Created on 29.11.2003 by RST. -// $Id: MSG.java,v 1.7 2005-02-19 21:20:47 salomo Exp $ +// $Id: MSG.java,v 1.8 2005-12-18 22:10:02 cawe Exp $ package jake2.qcommon; import jake2.Globals; @@ -85,7 +85,7 @@ public class MSG extends Globals { if (s == null) x = ""; - SZ.Write(sb, x.getBytes()); + SZ.Write(sb, Lib.stringToBytes(x)); WriteByte(sb, 0); //Com.dprintln("MSG.WriteString:" + s.replace('\0', '@')); } -- cgit v1.2.3