Am 27.08.2018 um 15:23 schrieb Allin
Cottrell:
I think the solution is (a) make sure your locale is set correctly
within R, using Sys.setlocale() if need be, and (b) tell R that
the incoming filename is in UTF-8. For the read.table() function
this would be a matter of appending the argument
'encoding="utf-8"',
as in
m <- as.matrix(read.table(fname, skip=1, encoding-"utf-8"))
If you can confirm that this works (for some UTF-8 path of your
choosing) we can add the encoding spec to the gretl.loadmat
function for R on Windows.
OK, I will try that and report back.
BTW, in the guide in the section "Passing matrices from gretl to R"
I think it would be better to put the low-level read.table function
in a footnote and mention the convenience function gretl.loadmat
first, as the recommended way to do things. I can apply that change
later myself, though, if there are no objections.
thanks,
sven