
Hello list, this is my first post to you :)
I've got a problem with handling locales and string_algo.
As an example I want so make this string
"hää?"
uppercase (->"HÄÄ?") by using this piece of code:
<code>
#include <iostream>
#include <locale>
#include <string>
#include

Hi, To be honest, I haven't tried to use string_algo with encodings that use variable number of bytes per character. All algorithms work in character-wise manner, so utf enconding might not work. Internaly std::tolower(Ch, Loc) is used to do the conversion. Try to see if this function works for you. If it doesn't give the required results, algorithms in the string_algo will not work either. Regards, Pavol. Maik Beckmann wrote:

I'm not sure if you find a std-verion, that will work with utf-8 here. I have checked the standard and case conversion that is present in locales is definitely not able to perform case conversion on variable-size encodings. Even the batch version is defined in terms of per-character conversion. Unless I'm missing something, standard is quite restrictive here. Regards, Pavol Maik Beckmann wrote:
participants (2)
-
Maik Beckmann
-
Pavol Droba