Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7568599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:57:59+00:00 2026-05-30T14:57:59+00:00

I have to translate some memory contents into a string, using ASCII encoding. For

  • 0

I have to translate some memory contents into a string, using ASCII encoding. For example:

0x6A636162

But I am not sure how to break that up, to be translated into ASCII. I think it has something to do with how many bits are in a char/digit, but I am not sure how to go about doing so (and of course, I would like to know more of the reasoning behind it, not just “how to do it”).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:58:01+00:00Added an answer on May 30, 2026 at 2:58 pm

    ASCII uses 7 bits to encode a character (http://en.wikipedia.org/wiki/ASCII). However, it’s common to encode characters using 8 bits instead (note that technically this isn’t ASCII). Thus, you’d need to split your data into 8-bit chunks and match that to an ASCII table.

    If you’re using a specific programming language, it may have a way to translate an ASCII code to a character. For instance, Ruby has the .chr method, Python has the chr() built-in function, and in C you can printf(“%c”, number).

    Note that each nibble (4 bits) can be represented as one hexadecimal digit, so for the sample string you show, each 8-bit “chunk” would be:

    0x6A
    0x63
    0x61
    0X62
    

    the string reads “jcab” 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Weird question, but I'm not sure if it's anti-pattern or not. Say I have
I have some Matlab functions that I have to translate in C but I
I have some jquery code which I am trying to translate to YUI. I
I'm coming from C# and trying to translate some of my practices into C++.
I'm not even sure this is entirely programming related...but here goes: I need to
i've a particular js function that encrypts some form inputs into base64, but I
Here's my scenario. I have an application written in C++ but not the complete
I'm trying to debug kernel module. I suspect to have there some memory leaks.
I need to translate some MySQL to mongodb. I have a MySQL query with
I am importing some c++ dll into a c# project, I am using visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.