I need to convert utf-8 string into local 8-bit encoded string (single character is represented by char) and keep the number of characters in the result string the same. So, I want unconvertable characters in the original utf string become the white spaces in the result string. Unfortunately the boost::locale::conv::from_utf does not provide such method of conversion. It provides only two: I need to convert utf-8 string into local 8-bit