| 287 | } |
| 288 | |
| 289 | std::string PlatformToUTF8(const std::string& str) { |
| 290 | #ifdef _WIN32 |
| 291 | return internal::CodePageToUTF8Win(str, GetACP()); |
| 292 | #else |
| 293 | // Assume UTF-8 on POSIX systems. |
| 294 | return str; |
| 295 | #endif |
| 296 | } |
| 297 | |
| 298 | std::string UTF8ToPlatform(const std::string& str) { |
| 299 | #ifdef _WIN32 |