Re: [Rd] A question about the API mkchar()

2008-11-03 Thread Prof Brian Ripley
1) 2.7.0 is rather old, and you were asked to update your R before posting. 2) No file was attached. But how to handle encodings is in the 'R Internals' manual. This is a tricky, advanced, topic in C-level R programming. It is your responsibility, not ours, to get yourself up to the level

Re: [Rd] A question about the API mkchar()

2008-11-03 Thread 王永智
Hi, Simon Thanks for your elaborated instruction on mkCharCE. Concerning the UTF-8 Encoding, mkCharCE(X, CE_UTF8) is the correct way in parsing the Unicode string. However, I met another question: My program logic is intended to read the content of a text file r.tmp, which is encoded wi

Re: [Rd] A question about the API mkchar()

2008-10-28 Thread Simon Urbanek
On Oct 28, 2008, at 6:26 , Fán Lóng wrote: Hi guys, Hey guy :) I've got a question about the API mkchar(). I have met some difficulty in parsing utf-8 string to mkchar() in R-2.7.0. There is no mkchar() in R. Did you perhaps mean mkChar()? I was intending to parse an utf-8 string s