| 296 | } |
| 297 | |
| 298 | std::string UTF8ToPlatform(const std::string& str) { |
| 299 | #ifdef _WIN32 |
| 300 | return internal::UTF8ToCodePageWin(str, GetACP()); |
| 301 | #else |
| 302 | // On POSIX, assume UTF-8 is the system encoding. |
| 303 | return str; |
| 304 | #endif |
| 305 | } |
| 306 | |
| 307 | } // namespace colmap |