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

  • Home
  • SEARCH
  • 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 8363193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:07:10+00:00 2026-06-09T12:07:10+00:00

I am attempting to convert some text from a text field to a(n) u32

  • 0

I am attempting to convert some text from a text field to a(n) u32 value. An example would be that I enter in string format (to represent a 32-bit integer), “0x30323436”, and the output in string format would be “0246”. I am trying to do this in C#, but I can use C as well. Thank you.

  • 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-06-09T12:07:11+00:00Added an answer on June 9, 2026 at 12:07 pm

    This should do what you want:

    string ParseWeirdFormat(string input)
    {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < input.Length; i += 2)
        {
            string hex = input.Substring(i, 2);
            int value = Convert.ToInt32(hex, 16);
            char c = (char)value;
            sb.Append(c);
        }
        return sb.ToString();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to convert some text files into a pdf. Now the easiest
I'm attempting to convert dates from one format to another: From e.g. October 29,
I'm attempting to convert some of my code from Tkinter to wxPython. Currently I'm
I'm attempting to convert a string to a TStream. My code below gives me
I am attempting to convert the following HQL query to Criteria. from SubportfolioAudit as
I have an application I am attempting to convert from a flex 3 air
I'm attempting to convert some VBScript to javascript, but I doubt it's possible because
I'm attempting to convert some effects created in Photoshop into code for use with
I'm attempting to write a simple Select method on a class that inherits from
I'm attempting to code an application that reads in the values from an IMU.

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.