yuzu is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of Citra. It is written in C++ with portability in mind,
// Copyright 2021 yuzu Emulator Project// Licensed under GPLv2 or any later version// Refer to the license.txt file included.#include"common/fs/fs_util.h"namespaceCommon::FS {std::u8string ToU8String(std::string_view utf8_string) {returnstd::u8string{utf8_string.begin(), utf8_string.end()};}}// namespace Common::FS