Your codes are very useful for me. But I will use wstring representing UTF16 characters sometimes, can you supply a wstring version too? Thank you!