[racket] How does DrRacket determine encoding?

From: Dmitry Pavlov (dpavlov at ipa.nw.ru)
Date: Fri Jul 25 13:06:01 EDT 2014

Matthew,

I just checked again and suddenly DrRackets saves to UTF-8 on
both machines. Lo let us just say that I am hallucinating and
forget it until I run against a reproducible case. Sorry.

Regards,

Dmitry



On 07/25/2014 08:57 PM, Matthew Flatt wrote:
> I would have said that DrRacket always uses UTF-8. Maybe I'm
> forgetting/missing something, though, so I'll give Robby a chance to
> reply to the list (when the sun is back up in his part of the world).
>
> At Fri, 25 Jul 2014 19:12:13 +0400, Dmitry Pavlov wrote:
>> Hello,
>>
>> I have a Racket on Windows XP machine and
>> a Racket on a Windows Server machine.
>>
>> I type some cyrillic text into DrRacket on XP, save the file,
>> and the resulting file has the CP1251 encoding.
>>
>> I type some cyrillic text into DrRacket on Windows Server,
>> save the file, and the resulting file has the UTF-8 encoding.
>>
>> notepad.exe tends to save to CP1251 on both machines.
>> HKEY_LOCAL_MACHINE\SYSTEM\\\CurrentControlSet\\Control\\Nls\\CodePage\\ACP
>> is "1251" on both machines.
>>
>> How do I programmatically predict which encoding DrRacket
>> will choose?
>>
>>
>> Regards,
>>
>> Dmitry
>> ____________________
>>    Racket Users list:
>>    http://lists.racket-lang.org/users
>
>


Posted on the users mailing list.