How to read csv files with a path or file name containing unicode characters? #172
Closed
Zapotecatl
started this conversation in
Q&A
Replies: 2 comments 1 reply
-
|
Hi @Zapotecatl - I'll try look into this on a windows machine when I get a chance, but based on this Stackoverflow post it seems some special unicode path handling is required on Windows, and rapidscsv currently does not provide that. As a short-term workaround it could be possible to go via std::ifstream instream(std::filesystem::path(u8"こんにちは"));
rapidcsv::Document doc(instream);
... |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I had to patch to something like this to use to the wide char apis on windows from an utf8 encoded std::string: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm making a game in Unreal Engine, and I'm using rapidscv as my database handler with csv files. With the UE filesystem classes I can read files that have unicode characters in the paths or filename. For example:
C:\Steam\私のビデオゲーム\myfile.txt
or
C:\Steam\MyVideoGames\マイファイル.txt
However, with rapidcsv I have not been able to read csv files that contain unicode characters.
Any ideas please?
Beta Was this translation helpful? Give feedback.
All reactions