Answer the question
In order to leave comments, you need to log in
Is there a type/class or some approach to work with Unicode String in C++?
What is the best type/class of string to use to work with Unicode strings in C++? Can eat any general, effective approach?
I thought in the direction of wstring, but looking at Wikipedia, I read the following:
In the Windows API, the wchar_t type is referred to as WCHAR and has a fixed size of 16 bits, which prevents the entire Unicode character set (more than 1 million) from being encoded.
QString stores a string of 16-bit QChars, where each QChar corresponds to one Unicode 4.0 character. (Unicode characters with code values greater than 65535 are stored using surrogate pairs, i.e. two consecutive QChars.)
Answer the question
In order to leave comments, you need to log in
utfcpp.sourceforge.net
Can I have some hate? Thank you.
The question "what are the libraries for XXX in the YYY language" was created for search engines. Well, why don't you try to ask this question not to living people on the toaster (or, in especially severe cases, right away on SO), but to soulless robots on Yandex, Google and even (God forbid, of course) all sorts of ungodly bings?
No, well, think for yourself, solid pluses - no one bothers, the answer (thousands of answers!) Is instantaneous, and in the resume you can indicate such a rare skill today - "I know how to search in Google." Solid profit.
In the Windows API, the wchar_t type is referred to as WCHAR and has a fixed size of 16 bits, which prevents the entire Unicode character set (more than 1 million) from being encoded.
char*s;
s = utf8_to_char("Hello world!"); //assign to s the string "Hello, world!" in utf-8 format
Now I want to take the 3rd character, that is, the letter "and", but, of course, s[2] will give a different result ... although in windows-1251 encoding it would give the letter "and" ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question