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 3634528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:47:25+00:00 2026-05-19T00:47:25+00:00

So what I want, is for example to convert the letter ‘a’ into 97

  • 0

So what I want, is for example to convert the letter ‘a’ into 97 (such as it is in the ASCII table), and then convert 67 into ‘a’.
I actually perform a load of mathematics and stuff to the letter, treating it as binary number – so the transition is necessary.
However for special characters it is not working nicely.

char c = 'ÿ';
int i = int(c);
wchar_t wTemp = static_cast<wchar_t>(i);
wchar_t* w = &wTemp;
String^ newI = gcnew String(w);

That symbol is just a random one I found in an image (the type of character that will need to be read). It just comes out as a completely different symbol. I have no idea why, or what to do?

  • 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-19T00:47:26+00:00Added an answer on May 19, 2026 at 12:47 am

    Characters above 0x7f (127) are probably converting to negative integer values. Maybe change c to unsigned:

    unsigned char c = 'ÿ';
    int i = c;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to convert characters into integers based on predetermined values, for example: a
I want to convert for example a particular date 12-11-2008 11:33:04.510 to UTC datetime.
I want to convert String to Date in different formats. For example, I am
I have a unicode string for example u'Mar232012' . I want to convert it
I want to extract string between html tags and convert it into other language
Can I convert iso date to milliseconds? for example I want to convert this
I want to convert for example, 1000 to one thousand (currency). How can i
I'm having a annoying issue with rewrite-using cherokee web-server. I want to convert: http://example.com/mypage.phtml?cmd=print
I want to develop a keystroke converter which will convert any keystroke into my
I want to resize a image, for example: convert 1.jpg -resize 250x240> 1.jpg I

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.