convert string to wide string

#include <iostream>
#include <string>
#include <locale>

int main() {
    // Step 1: Create a narrow string
    std::string narrowString = "Hello, World!";

    // Step 2: Create a locale object for wide character conversion
    std::locale loc;

    // Step 3: Create a wide string using the std::wstring_convert
    std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
    std::wstring wideString = converter.from_bytes(narrowString);

    // Step 4: Print the original narrow string
    std::cout << "Original Narrow String: " << narrowString << std::endl;

    // Step 5: Print the converted wide string
    std::wcout << L"Converted Wide String: " << wideString << std::endl;

    return 0;
}