Re: [R] UTF-8 to the console

2022-10-13 Thread Tomas Kalibera
On 6/23/22 13:36, Ivan Krylov wrote: On Thu, 23 Jun 2022 12:26:23 +0200 Helmut Schütz wrote: txt <- "x ≥ y, x \u2265 y; a ≈ b, a \u2248 b" Encoding(txt) <- "UTF-8" There shouldn't be a need to change the encoding. If you're creating a Unicode literal, R should already choose UTF-8 for the r

Re: [R] UTF-8 to the console

2022-10-13 Thread Tomas Kalibera
Dear Helmut, thanks for the report, this is actually a bug in Rterm (or Windows, hard to tell, but something that can be fixed in Rterm). More below On 6/23/22 12:26, Helmut Schütz wrote: Dear all, I want to send UTF-8 characters to the console. Font in the GUI-Preference 'Lucida Console',

Re: [R] UTF-8 to the console

2022-06-23 Thread Olivier Crouzet
Hi, from what I can tell, unicode-related issues (in several programming languages) are often specifically related to the MS Windows operating system rather than to R (though that does not imply it is irrelevant here). You may wish to have a look at: https://blog.r-project.org/2020/05/02/utf-8-s

Re: [R] UTF-8 to the console

2022-06-23 Thread Ivan Krylov
On Thu, 23 Jun 2022 12:26:23 +0200 Helmut Schütz wrote: > txt <- "x ≥ y, x \u2265 y; a ≈ b, a \u2248 b" > Encoding(txt) <- "UTF-8" There shouldn't be a need to change the encoding. If you're creating a Unicode literal, R should already choose UTF-8 for the resulting string. Either way, R automat

Re: [R] UTF-8 to the console

2022-06-23 Thread Ebert,Timothy Aaron
Print(a\u2248b") gives approximately equal sign. -Original Message- From: R-help On Behalf Of Ebert,Timothy Aaron Sent: Thursday, June 23, 2022 6:48 AM To: Helmut Schütz ; r-help@r-project.org Subject: Re: [R] UTF-8 to the console [External Email] Wikipedia indicates that ther