I read a few posts about best practices for strings and character encoding in C++, but I am struggling a bit with finding a general purpose approach that seems to me reasona
The traits approach described here might be helpful. It's an old but useful technique.