Discussion:
_tolower/umlauts
(too old to reply)
Frank
2012-12-12 13:57:10 UTC
Permalink
Dear people,

it's known that _tolower and the other corresponding functions
don't convert umlauts and probably other special characters
as well. I use the std::transform function with _tolower to convert
strings to lower-case; can anybody devise a method that will convert
umlauts, too?

TIA!
ralph
2012-12-12 14:24:39 UTC
Permalink
Post by Frank
Dear people,
it's known that _tolower and the other corresponding functions
don't convert umlauts and probably other special characters
as well. I use the std::transform function with _tolower to convert
strings to lower-case; can anybody devise a method that will convert
umlauts, too?
A major issue is that no complete one-to-one 'substitution' exists. So
any 'total' solution will need to be a special hand-rolled function
with your own defined business/grammar rules.

Take a look at this discussion.
http://stackoverflow.com/questions/2598569/toupper-tolower-locale-german
It appears to give a good overview of the problem and provides some
"close to complete" solutions.

[How's your German? There appears to be a number of published
solutions on the web, but naturally most are in German. When one of my
shops ran across this problem - we brought some German-speakers. <g>]

-ralph

Loading...