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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:43:39+00:00 2026-05-21T06:43:39+00:00

Possible Duplicate: C++ source in unicode I just discovered this line of code in

  • 0

Possible Duplicate:
C++ source in unicode

I just discovered this line of code in a project:

string überwachung;

I was surprised, because actually I thought you are not allowed to use umlauts like ‘äöü’ in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

  • 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-21T06:43:39+00:00Added an answer on May 21, 2026 at 6:43 am

    GCC complains on it:
    codepad

    : error: stray ‘\303’ in program

    The C++ language standard itself limits the basic source character set to 91 printable characters plus tabs, form feed and new-line, which are all within ASCII. However, there’s a nice footnote:

    The glyphs for the members of the basic source character set are intended to identify characters from the subset of
    ISO/IEC 10646 which corresponds to the ASCII character set. However, because the mapping from source file characters to the
    source character set (described in translation phase 1)
    is specified as implementation-defined, an implementation is required to
    document how the basic source characters are represented in source files.

    .. translation phase 1 is (emphasis mine)

    Physical source file characters are mapped, in an implementation-defined manner, to the basic source
    character set (introducing new-line characters for end-of-line indicators) if necessary. The set of physical
    source file characters accepted is implementation-defined.

    Generally, you shouldn’t use umlauts or other special characters in your code. If may work, but if it does, it’s a compiler-specific feature.

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

Sidebar

Related Questions

Possible Duplicate: Storing third-party libraries in source control I'm currently starting a project which
Possible Duplicate: “The breakpoint will not currently be hit. The source code is different
Possible Duplicate: Compiling C code for .NET I have a bunch of C source
Possible Duplicate: Dynamic source code in C++ is it possible to let the user
Possible Duplicate: casting unused return values to void I read some source code, and
Possible Duplicate: Source code for java array There is a Java source file for
Possible Duplicate: Understanding Python decorators I was reading a django app source code where
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
Possible Duplicate: Using Source Control So, although even here on Stack Overflow are literally
Possible Duplicate: Open source iPhone Coverflow like library hello all i want to develop

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.