[#fs-path-utf8string]
= xref:fs.adoc[fs]::xref:fs/path.adoc[path]::utf8string
:relfileprefix: ../../
:mrdocs:

Return a UTF&hyphen;8 representation of the path as a std&colon;&colon;string, for compatibility with code using std&colon;&colon;string&period; For code using the newer std&colon;&colon;u8string type, it is more efficient to call the inherited std&colon;&colon;filesystem&colon;&colon;path&colon;&colon;u8string method instead&period;

== Synopsis

Declared in `&lt;util&sol;fs&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
utf8string() const;
----

== Return Value

The path encoded as a UTF&hyphen;8 std&colon;&colon;string&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
