i have to convert a string into ascii format and then into it's binary.
I know how to convert between int to binary using toBinaryString, so how to convert ascii to int.
Or is there any other way to convert string characters into binary form.
In short suppose there is a string like "how are you" , so i have to convert it into binary form.
hszforu -3 Junior Poster in Training
Recommended Answers
Jump to PostAre you asking something like how to convert this String: "A" to this: "1000001"
Jump to PostSorry, can you explain what you want that is different than what I asked. Other than my example's String was 1 letter vs 11 in yours.
What do you mean by "binary format"? I assumed you wanted a String of 0s and 1s.
Can you give a short …
All 7 Replies
Rameshwar Soni 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
hszforu -3 Junior Poster in Training
NormR1 563 Posting Sage Team Colleague
hszforu -3 Junior Poster in Training
Ezzaral commented: That is exactly what NormR1 just posted. -3
NormR1 563 Posting Sage Team Colleague
hszforu -3 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.