🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Converting Ordinary String to Hex Representation

#8494
From: Harry Whitehouse
Date: Thu, 15 Mar 2001 06:48
13 lines
1190 bytes
I need to convert a simple text string to the hex representation of that
string.  That representation in of itself should be another string.  For
instance in the string was "1 2" (The number 1, a space, and the number 2)
I would want a HEX presentation of "312032".

I've been through a ton of classes, but I can't seem to find the way to pull
this off.

Any thoughts?

TIA

Harry
Technical Details
Message-ID: <3ab065d9$1_1@dnews>
Path: arc1-ca.pugleaf.net!pubnews.netcom.net.uk!diablo.netcom.net.uk!netcom.net.uk!feed.textport.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!38.168.115.135

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2d3641429c1fd31,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-17 07:55:06 PST
From: "Harry Whitehouse" <harry@envmgr.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Converting Ordinary String to Hex Representation 
Date: Wed, 14 Mar 2001 22:48:59 -0800
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 38.168.115.135
Message-ID: <3ab065d9$1_1@dnews>
X-Trace: 14 Mar 2001 22:48:57 -0800, 38.168.115.135
Path: arc1-ca.pugleaf.net!pubnews.netcom.net.uk!diablo.netcom.net.uk!netcom.net.uk!feed.textport.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!38.168.115.135