[R-pkg-devel] Invalid UTF-8
Göran Broström
gor@n@bro@trom @end|ng |rom umu@@e
Mon Oct 17 13:20:25 CEST 2022
Thanks Ivan,
I found two simple ways to convert this old file to UTF-8:
(i) In emacs, C-x <RET> f <RET> (default is utf-8)
(ii) In RStudio, set Tools-Global Options-Code-Saving-
Default text encoding to UTF-8
No problem with new files.
G;ran (US keyboard)
Den 2022-10-17 kl. 11:18, skrev Ivan Krylov:
> В Mon, 17 Oct 2022 11:07:25 +0200
> Göran Broström <goran.brostrom using umu.se> пишет:
>
>> warning: invalid UTF-8 in comment [-Winvalid-utf8]
>> (It's my name)
>>
>> So I wonder: How do I make valid UTF-8 in comment?
>
> The file GB_zeroin.c is saved in Latin-1 encoding. The warning should
> go away once you convert it to UTF-8.
>
More information about the R-package-devel
mailing list