-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R-Forge #4903] set encoding in fread #563
Comments
+1 for this |
+1 |
1 similar comment
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 Would be really usefull. I started to hack locally the code but it's too hard for me because it call a C function (readfile) and I don't know how (for the moment) how to handle encoding in C. If any one some knowledge in C... |
+1 |
10 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1, and in the meantime, a workaround: You need iconv available from the console. You can check this with the following command:
As long as this gives you a path to a binary, the following will work:
|
Sent from my iPhone
|
+1 |
1 similar comment
+1 |
+1 note however that in |
+1 |
1 similar comment
+1 |
Tl;dr Could you please test your files with About the fix: Looking at
|
Arun, There's a typo in README.md 27 . fread() gains eocnding argument. ... eocnding --> encoding |
if speaking about the typos there is one missing Line 102 in 7f78b1b
|
Thank you for this!!!! A question of clarification: does the |
I have an iso-8850-1 windows file, that I can't fread correctly on linux. This workaround (#563 (comment)) works. And read.csv works (i.e. produces the correct øæå letters, instead of e.g. \xe6), but fread(... encoding = "Latin-1") does not. |
Submitted by: michele de meo; Assigned to: Nobody; R-Forge link
It's useful to specify the encoding before importing a csv.
For example:
fread(... , encoding='UTF8').
In this way we can avoid the boring use of file function in read.table (not supported in fread ):
read.table(file("mycsv.csm", encoding='UTF8'), ... ).
Michele De Meo
The text was updated successfully, but these errors were encountered: