fs::path::utf8string

Return a UTF-8 representation of the path as a std::string, for compatibility with code using std::string. For code using the newer std::u8string type, it is more efficient to call the inherited std::filesystem::path::u8string method instead.

Synopsis

Declared in <util/fs.h>

std::string
utf8string() const;

Return Value

The path encoded as a UTF-8 std::string.