[R] UTF-8 to the console

Helmut Schütz he|mut@@chuetz @end|ng |rom beb@c@@t
Thu Jun 23 12:26:23 CEST 2022

Dear all,

I want to send UTF-8 characters to the console. Font in the 
GUI-Preference 'Lucida Console', supporting the desired symbols:
greater than or equal: UTF-8 2265, HTML-entity ≥ HTML-Unicode ≥ 
TeX \ge
approximately equal: UTF-8 2248, HTML-entity ≈ HTML-Unicode 
≈ TeX \approx

txt <- "x ≥ y, x \u2265 y; a ≈ b, a \u2248 b"
Encoding(txt) <- "UTF-8"
[1] "x = y, x = y; a \230 b, a \230 b"
cat(txt, "\n")
x = y, x = y; a ˜ b, a ˜ b

Desired "x ≥ y, x ≥ y; a ≈ b, a ≈ b"

I'm sending the email in UTF-8. Don’t know how @r-project.org is 
configured (ASCII?) If you see garbage, I'm sorry but you should get the 

R 4.2.0 on Windows 7 (UCRT10.0.10240.16390) and Windows 11.

Ing. Helmut Schütz
BEBAC – Consultancy Services for
Bioequivalence and Bioavailability Studies
Neubaugasse 36/11
1070 Vienna, Austria
E helmut.schuetz using bebac.at <mailto:helmut.schuetz using bebac.at>

More information about the R-help mailing list