🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19418

String to bytes

#19418
From: Greg Dickson
Date: Fri, 06 Feb 1998 00:00
15 lines
788 bytes
String s = "blahblah\rblah";   
byte[] buf = new byte[s.length()];
 
  Does anyone know a way to allow escape sequences to be parsed as is
  so blahblah\rblah beckoms blahblah\r   blah
   rather than
 
   blahblah
   blah
   
any ideas 
Thanks
Greg Dickson
   
Technical Details
Message-ID: <6bdd94$9277@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b157cddb91e18e0b,start
X-Google-Attributes: gidf74b3,public
From: "Greg Dickson" <witchy@netserv.net.au>
Subject: String to bytes
Date: 1998/02/06
Message-ID: <6bdd94$9277@forums.borland.com>
X-Deja-AN: 322438580
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.language