std::string
per se uses no encoding — it will return the bytes you put in it. For example, those bytes might be using ISO-8859-1 encoding… or any other, really: the information about the encoding is just not there — you have to know where the bytes were coming from!
More Related Contents:
- Convert wstring to string encoded in UTF-8
- Convert std::string to QString
- Read whole ASCII file into C++ std::string [duplicate]
- How do I read an entire file into a std::string in C++?
- How can I convert a std::string to int?
- std::string formatting like sprintf
- Legality of COW std::string implementation in C++11
- C++ convert string to hexadecimal and vice versa
- printf with std::string?
- How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
- Difference between string and char[] types in C++
- how to check if given c++ string or char* contains only digits?
- How do I check if a C++ std::string starts with a certain string, and convert a substring to an int?
- What exactly is the L prefix in C++?
- reading a line from ifstream into a string variable
- How to append a char to a std::string?
- A good example for boost::algorithm::join
- How to make my split work only on one real line and be capable to skip quoted parts of string?
- Why am I getting string does not name a type Error?
- “” + something in C++
- Padding stl strings in C++
- How to write a std::string to a UTF-8 text file
- How to compare strings
- When did C++ compilers start considering more than two hex digits in string literal character escapes?
- equivalent of Console.ReadLine() in c++
- What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)?
- Memory-efficient C++ strings (interning, ropes, copy-on-write, etc) [closed]
- converting narrow string to wide string
- convert string to integer in c++
- What’s the difference between istringstream, ostringstream and stringstream? / Why not use stringstream in every case?