Encoding

52 views
Skip to first unread message

Erez Ben-Moshe

unread,
Nov 13, 2015, 11:14:20 AM11/13/15
to Israel R User Group
שלום,

התקנתי את הגרסה האחרונה של RStudio על מכונה חדשה עם Windows8 וערכי משתנה הכתובים בעברית מוצגים כג'יבריש.
שיניתי את השפה ב- Windows לעברית כך שהסיבה כנראה נובעת מה- Rstudio.  

על המכונה הישנה, Rstudio מציג את אותו קובץ עם הערכים בעברית. 

איך אפשר לסדר זאת?

תודה,
ארז

Tal Galili

unread,
Nov 13, 2015, 11:26:24 AM11/13/15
to israel-r-...@googlegroups.com
אם מישהו אחר לא ידע לענות לך, שווה לשאול אותם ישירות:



----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yoni Sidi

unread,
Nov 13, 2015, 12:13:22 PM11/13/15
to Israel R User Group
what does this command return on your computer?

Sys.getlocale()

To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

Erez Ben-Moshe

unread,
Nov 13, 2015, 4:06:21 PM11/13/15
to israel-r-...@googlegroups.com
Sys.getlocale()

LC_COLLATE=English_United States.1252;
LC_CTYPE=English_United States.1252;
LC_MONETARY=English_United States.1252;
LC_NUMERIC=C;LC_TIME=English_United States.1252


תודה,
ארז

בתאריך 13 בנובמבר 2015 בשעה 19:13, מאת Yoni Sidi <yon...@gmail.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה

Erez Ben-Moshe

unread,
Nov 13, 2015, 4:51:44 PM11/13/15
to israel-r-...@googlegroups.com
תודה יוני,

בהמשך להצעתך לבחון את ה- Sys.getlocale , הרצתי:

Sys.setlocale(category = "LC_ALL", locale = "Hebrew_Israel.1255")

והכל הסתדר ואני רואה את הערכים בעברית.

איך אני מקבע את הלוקל הזה?

ארז

בתאריך 13 בנובמבר 2015 בשעה 23:06, מאת Erez Ben-Moshe <erezbe...@gmail.com>:

Yoni Sidi

unread,
Nov 14, 2015, 4:40:38 AM11/14/15
to Israel R User Group

good.

here you have two options.

  • on the computer level which can affect other programs you are running (less recommended)
  • create an Rprofile.site file in C:\Program Files\R\R-n.n.n\etc directory and put in there the line of code you ran before.
    • this way each time r starts it will run that code for you automatically. (better solution)

yoni

To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה

Erez Ben-Moshe

unread,
Nov 15, 2015, 9:12:27 AM11/15/15
to israel-r-...@googlegroups.com
תודה יוני!

To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shmulik Tiosano

unread,
Nov 15, 2015, 3:15:24 PM11/15/15
to Israel R User Group
היי ארז ויוני
התשובה של יוני מדוייקת, אבל אני חושב ש"לקבע" את הלוקל זו טעות. קיבוע כזה לא מאפשר לסקריפט שלך להיות בר-שחזור במחשבים של אחרים שלא הגדירו את הלוקל או במחשב שלך בגרסאות R עתידיות מבלי שתקבע שוב את הלוקל.
לטעמי הגדרת הלוקל צריכה להיות חלק מהסקריפט עצמו (רק שורה אחת, לא יעמיס על הסקריפט וימנע בעיות בעתיד).
בהצלחה!
שמוליק.
תודה יוני!

To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה


--
Erez Ben-Moshe | Tel: +972-54-5778345 | ארז בן-משה

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages