Thank you very much for this.
I had to do one other thing: make sure that the $LANG environment variable is set properly.
In my case (Mac OS X), this was blank, probably because of a Custom region setting in System Preferences.
Setting $LANG to something sensible (e.g., en_GB.UTF-8) fixed this longstanding problem on my machine.
For full details, see the unicodetitlecase wiki at https://github.com/cantab/unicodetitlecase/wiki/_pages
Thank you very much for this.
I had to do one other thing: make sure that the $LANG environment variable is set properly.
In my case (Mac OS X), this was blank, probably because of a Custom region setting in System Preferences.
Setting $LANG to something sensible (e.g., en_GB.UTF-8) fixed this longstanding problem on my machine.
For full details, see the unicodetitlecase wiki at https://github.com/cantab/unicodetitlecase/wiki/_pages