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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:50:19+00:00 2026-06-08T20:50:19+00:00

Peter Thiel’s CS183 Notes has a filename with the ASCII string: Peter Thiel’s CS183.pdf

  • 0

Peter Thiel’s CS183 Notes has a filename with the ASCII string: “Peter Thiel’s CS183.pdf” or at least that is how it prints out in Windows Explorer. However, while debugging my program, I noticed that the ' character isn’t the plain apostrophe, it has a (unsigned char) value of 146, not the expected 39.

To test to see if it was a bug in my program, I renamed the file and erased the character and retyped apostrophe. Sure enough, this time my program displayed the correct value. I reasoned therefore that it must be a Unicode character (since I don’t see it in the ASCII table). However, it isn’t a multibyte character because the next byte in the string is an ‘s’.

Can someone help explain whats going on here?

  • 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-08T20:50:21+00:00Added an answer on June 8, 2026 at 8:50 pm

    Your mistake is believing this string is ASCII.

    If you are using a Windows machine with character encoding CP-1252 (see http://en.wikipedia.org/wiki/Windows-1252), then your “code” 146 is a
    kind of quote (see the table at the wikipedia page).

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

Sidebar

Related Questions

In his book Java Design , Peter Coad says that one of the five
I want to have classes that can mix only specified traits: class Peter extends
Peter Norvig has an essay describing a program to solve sudoku puzzles , even
I have recently taken over an application that uses the Peter Blum Date and
I'm working on Project Euler problem number 205 which states: Peter has nine four-sided
I'm trying to generate a formatted string based on a list: [{Max, 18}, {Peter,
I used the code from Why is this slideshow flickering? which peter has given
In Peter Alfred's article on multivariative scattered data interpolation he mentioned, that from a
I just learned from Peter Lawreys post that this is valid expression, and evaluates
Answer update, 12/22 : Using Peter Shor's observation that there's a homomorphism between distinct

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.