Re: [R-pkg-devel] Invalid UTF-8

2022-10-17 Thread Göran Broström
Thanks Ivan, I found two simple ways to convert this old file to UTF-8: (i) In emacs, C-x f (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:

Re: [R-pkg-devel] Invalid UTF-8

2022-10-17 Thread Ivan Krylov
В Mon, 17 Oct 2022 11:07:25 +0200 Göran Broström пишет: > 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. --

[R-pkg-devel] Invalid UTF-8

2022-10-17 Thread Göran Broström
Hello, I suddenly get Warnings from CRAN (clang): warning: invalid UTF-8 in comment [-Winvalid-utf8] (It's my name) So I wonder: How do I make valid UTF-8 in comment? (I already have "Encoding: UTF-8" in the DESCRIPTION file) Thanks, Göran __