This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing
There are a few answers in this post as well, especially if you're looking for a cross-platform solution:
UTF8 to/from wide char conversion in STL