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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:18:17+00:00 2026-05-15T03:18:17+00:00

It has been mentioned in several sources that C++0x will include better language-level support

  • 0

It has been mentioned in several sources that C++0x will include better language-level support for Unicode(including types and literals).

If the language is going to add these new features, it’s only natural to assume that the standard library will as well.
However, I am currently unable to find any references to the new standard library. I expected to find out the answer for these answers:

  1. Does the new library provide standard methods to convert UTF-8 to UTF-16, etc.?
  2. Does the new library allowing writing UTF-8 to files, to the console (or from files, from the console). If so, can we use cout or will we need something else?
  3. Does the new library include “basic” functionality such as: discovering the byte count and length of a UTF-8 string, converting to upper-case/lower-case(does this consider the influence of locales?)

Finally, are any of these functions are available in any popular compilers such as GCC or Visual Studio?

I have tried to look for information, but I can’t seem to find anything. I am actually starting to think that maybe these things aren’t even decided yet(I am aware that C++0x is a work in progress).

  • 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-15T03:18:18+00:00Added an answer on May 15, 2026 at 3:18 am

    Does the new library provide standard methods to convert UTF-8 to UTF-16, etc.?
    No. The new library does provide std::codecvt facets which do the conversion for you when dealing with iostream, however. ISO/IEC TR 19769:2004, the C Unicode Technical Report, is included almost verbatim in the new standard.

    Does the new library allowing writing UTF-8 to files, to the console (or from files, from the console). If so, can we use cout or will we need something else?
    Yes, you’d just imbue cout with the correct codecvt facet. Note however that the console is not required to display those characters correctly

    Does the new library include “basic” functionality such as: discovering the byte count and length of a UTF-8 string, converting to upper-case/lower-case(does this consider the influence of locales?)
    AFAIK that functionality exists with the existing C++03 standard. std::toupper and std::towupper of course function just as in previous versions of the standard. There aren’t any new functions which specifically operate on unicode for this.

    If you need these kinds of things, you’re still going to have to rely on an external library — the <iostream> is the primary piece that was retrofitted.

    What, specifically, is added for unicode in the new standard?

    • Unicode literals, via u8″”, u””, and U””
    • std::char_traits classes for UTF-8, UTF-16, and UTF-32
    • mbrtoc16, c16rtomb, mbrtoc32, and c32rtomb from ISO/IEC TR 19769:2004
    • std::codecvt facets for the locale library
    • The std::wstring_convert class template (which uses the codecvt mechanism for code set conversions)
    • The std::wbuffer_convert, which does the same as wstring_convert except for raw arrays, not strings.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 448k
  • Answers 448k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Zend_Translate / Zend_Locale are nice and very flexible. They do… May 15, 2026 at 7:52 pm
  • Editorial Team
    Editorial Team added an answer So, anyways -- apparently tcpdf's HTML engine gives the tag… May 15, 2026 at 7:52 pm
  • Editorial Team
    Editorial Team added an answer What is the standard way of generating invoices? Is it… May 15, 2026 at 7:52 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.