On Wed, 7 Feb 2018, Henrique Andrade wrote:
Em 7 de fevereiro de 2018, Allin escreveu:
>
> On Wed, 7 Feb 2018, Henrique Andrade wrote:
>
>> Dear Allin,
>>
>> Gretl does not recognize accented folder names in the "set workdir"
>> command. I'm trying something like this:
>>
>> set workdir "C:/Users/Henrique/Box Sync/Espaço de estados"
>>
>> I'm using Gretl (build 2018-02-05) on my Windows Vista PC.
>
>
> Ugh, yet another Windows encoding issue. That's now fixed in git and snapshots.
Thanks for your help :-) But we have a new problem :-(
Please take a look at the following example:
<hansl>
set echo off
set messages off
set workdir "C:/Users/Henrique/Documents/gretl/Éça de Queiroz"
open australia.gdt --quiet
printf "\nTable 1. Test for readfile()\n\n"
outfile "Table_1.txt" --write --quiet
printf "\nTable 1. Test for readfile()\n\n"
outfile --close
string Table_1 = readfile("Table_1.txt")
print Table_1
</hansl>
Please tell me exactly what goes wrong in this case. It works just
fine on any OS that uses UTF-8; any problem will be specific to
Windows.
I'm afraid this sort of thing is an incredible headache and pain in
the arse. Windows uses a grotesque mash-up of locale-specific code
pages and bloated UTF-16 to represent non-ASCII characters, as
opposed to nice, clean UTF-8 like everyone else. Nonetheless, we'll
strive to get it right!
Allin