<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear All,<div><br></div><div>I am new to Aquamacs, and am using on Mac OS X platform, essentially to process R scripts. I got an error for locale, and I changed to en_US.UTF-8 using Sys.setlocale("LC_ALL", "en_US.UTF-8") in R GUI (within Aquamacs). I also adding extra code to encode the file like suffixing (fileEncoding = "latin1").</div><div><br></div><div>Now R is reading the file and data correctly, which contains some special characters like "<font class="Apple-style-span" color="#1500FF">µ</font>" (micro), for example,</div><div><div>>names(data)</div><div> <font class="Apple-style-span" color="#1A1AFF">[1] "Geno"          "Treat"         "Pn_µmol.m_.s"  "Rd_µmol.m_.s" </font></div></div><div><br></div><div><br></div><div>but when I use the factor separately, it is showing some error...</div><div><br></div><div><div>>data$Pn_µmol.m_.s</div><div><font class="Apple-style-span" color="#1C11FF">Error: invalid multibyte character in parser at line 1</font></div></div><div><font class="Apple-style-span" color="#1C11FF"><br></font></div><div><font class="Apple-style-span" color="#090909">When I use in the R GUI (outside Aquamacs), it is reading correctly. </font><span class="Apple-style-span" style="color: rgb(9, 9, 9); ">I have no idea what is the problem. Can somebody can help me to solve this problem.</span></div><div><font class="Apple-style-span" color="#090909"><div><br></div><div><font class="Apple-style-span" color="#150CFF">> sessionInfo()</font></div><div><font class="Apple-style-span" color="#150CFF">R version 2.11.1 (2010-05-31) </font></div><div><font class="Apple-style-span" color="#150CFF">i386-apple-darwin9.8.0 </font></div><div><font class="Apple-style-span" color="#150CFF"><br></font></div><div><font class="Apple-style-span" color="#150CFF">locale:</font></div><div><font class="Apple-style-span" color="#150CFF">[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/C</font></div><div><font class="Apple-style-span" color="#150CFF"><br></font></div><div><font class="Apple-style-span" color="#150CFF">attached base packages:</font></div><div><font class="Apple-style-span" color="#150CFF">[1] grid      stats     graphics  grDevices utils     datasets  methods  </font></div><div><font class="Apple-style-span" color="#150CFF">[8] base     </font></div><div><font class="Apple-style-span" color="#150CFF"><br></font></div><div><font class="Apple-style-span" color="#150CFF">other attached packages:</font></div><div><font class="Apple-style-span" color="#150CFF">[1] SuppDists_1.1-8 agricolae_1.0-9 gplots_2.8.0    caTools_1.10   </font></div><div><font class="Apple-style-span" color="#150CFF">[5] bitops_1.0-4.1  gdata_2.7.2     gtools_2.6.2    RODBC_1.3-2    </font></div><div><font class="Apple-style-span" color="#150CFF">> </font></div></font></div><div><span class="Apple-style-span" style="color: rgb(9, 9, 9); "><br></span></div><div><span class="Apple-style-span" style="color: rgb(9, 9, 9); ">Thanks in advance</span></div><div><span class="Apple-style-span" style="font-size: 14px; ">__</span><div apple-content-edited="true"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Gill Sans'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Gill Sans'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Gill Sans'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div><div>R VALLURU<br>Ecophysiologie des Plantes sous Stress Environnementaux (LEPSE),<br>UMR INRA-SUPAGRO, Institut de Biologie Intégrative des Plantes<br>2, place Viala, 34060 Montpellier cedex 1, FRANCE<br>tel +33 (0)4 99 61 29 56<br>fax +33 (0)4 67 52 21 16</div></div></div></span></div></span></div></span></div> </div><br></div></body></html>