Skip to content
Prev 334360 / 398506 Next

charToRaw("Œ") is not 8C in R console

On 13/12/2013 07:03, ???? wrote:
I don't see that: that is two characters and they are C5 and 92 in that 
table.  8C is a AE ligature, there.

And what the 'hex value' is depends on the locale: see the preamble of 
that table (which seems to assume everyone uses CP1252): you have not 
stated yours.
Because R is better at looking up hex values than you are.

I get

 > charToRaw("??")
[1] c3 85 e2 80 99

in UTF-8 (as will almost everyone not using Windows).