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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:42:30+00:00 2026-06-15T10:42:30+00:00

Probably a programmer read up on the fundamentals of encoding, but my specific question

  • 0

Probably a programmer read up on the fundamentals of encoding, but my specific question is

In windows Visual C output to Windows console, the unsigned char value 140 prints as unicode 0x0152 = 338.

What encoding (or “code page”?) is Visual C using? (e.g. UTF-7, ASCII). How exactly is unsigned char value 140 mapping to the unicode character 338?

I’m sure anyone can paste a link to one of the many wikipedia pages on encoding or a tables on the web, but a more specific answer to the question would be nice.

  • 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-15T10:42:31+00:00Added an answer on June 15, 2026 at 10:42 am

    That would be encoding Windows-1252, and it’s not that Visual C is “using” it, it’s what the Windows console is interpreting the output as.

    This other answer might be what you seek: What encoding/code page is cmd.exe using?

    “Code page” is Microsoft’s term for “Coded Character Set” which is more or less equivalent to what you think of as an “encoding”, but see the Unicode Glossary for precise definitions.

    And to quote the Wikipedia page:

    Historically, the phrase “ANSI code page” (ACP) is used in Windows to refer to various code pages considered as native. The intention was that most of these would be ANSI standards such as ISO-8859-1. Even though Windows-1252 was the first and by far most popular code page named so in Microsoft Windows parlance, the code page has never been an ANSI standard. Microsoft-affiliated bloggers now state that “The term ANSI as used to signify Windows code pages is a historical reference, but is nowadays a misnomer that continues to persist in the Windows community.”

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

Sidebar

Related Questions

probably a simple question but I seem to be suffering from programmer's block. :)
Probably I'm just too dump for googling, but I always thought char arrays get
Probably a bit off topic question, but it's something I'm really interested in getting
This is probably a simple question, but i would like to know how to
Sorry for the probably basic question, but I'm trying to understand some code and
All the guys probably will recommend that I read the follow previously question in
I am rather inexperienced C++ programmer, so this question is probably rather basic. I
Probably something really simple, but I'm having some real trouble with it. I have
Probably something simple, but heres my problem, I have implememnted a simple captcha into
Probably right in front of me, but I am not sure how to set

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.