Files
jak-project/common/util/unicode_util.h
T
Tyler Wilding 1b67d1dc77 Fix UTF-8 handling when running the game, env-vars, and setting the project path (#1632)
* fix utf-8 handling around env-vars

* fix file opening errors related to unicode

* add uncaught exception handler in `gk` to ensure something is logged

* gracefully fail if window icon cant be loaded and work with unicode

* linux fix and add changes to vendor file
2022-07-10 19:03:24 -04:00

14 lines
423 B
C++

#pragma once
#include <string>
#include <vector>
#ifdef _WIN32
std::wstring utf8_string_to_wide_string(const std::string_view& str);
bool utf8_string_to_wide_string(std::wstring& dest, const std::string_view& str);
std::string wide_string_to_utf8_string(const std::wstring_view& str);
bool wide_string_to_utf8_string(std::string& dest, const std::wstring_view& str);
#endif
std::string get_env(const std::string& name);