For example:
s = “兰蔻面膜”
In Python, its length is:
>>> len(“兰蔻面膜”)
4
But in C++, len=12 as below:
cout<< s.length()<<endl;
12
Why is that? I am simply checking the length of Chinese string in c++ IDE, and found its length is 12. The 's' has 4 characters.