Skip to content
Prev 138389 / 398506 Next

Strange paste, string or package problem?

On Tue, 4 Mar 2008, Thomas Allen wrote:

            
Because you put it there!  I believe that at the first step you were 
running R in a UTF-8 locale, and at the second in (probably) an 8-bit 
locale.  I can reproduce this by changing from en_GB.utf8 to en_GB on F8, 
for example.

<e2><80><93> is UTF-8 for the Unicode point U+2013, the en dash.  I don't 
know how you managed to enter that in UTF-8 (I would have not have 
expected it to be accidentally possible from the keyboard), but the 
solution is to use hyphen where you intend hyphen.  (Unicode calls this 
'HYPHEN-MINUS' to indicate its dual role -- it also has U+2212 for minus.)