diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 5e77da7..7604a29 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -1186,7 +1186,7 @@ GHC_INLINE void appendUTF8(std::string& str, uint32_t unicode) str.push_back(static_cast((unicode & 0x3f) + 128)); } else { - str.push_back(0xfffd); + appendUTF8(str, 0xfffd); } }