How to read and output Hindi in R console? -
i have been trying read , output hindi .txt file r console gibberish. did far.
hindi <- read.table('hindi_text.txt') hindi 1 कà¥à¤¯à¤¾ बोल रहे हो तà¥à¤®
then typed this. still not work.
> sys.setlocale(category="lc_all", locale="hindi") > [1] "lc_collate=hindi_india.1252;lc_ctype=hindi_india.1252;lc_monetary=hindi_india.1252;lc_numeric=c;lc_time=hindi_india.1252" > hindi > 1 कà¥à¤¯à¤¾ बोल रहे हो तà¥à¤®
i tried reading chinese characters changing locale chinese , worked.
> chinese <- read.table("chinese.txt") > sys.setlocale(category="lc_all", locale="chinese") > [1] "lc_collate=chinese (simplified)_china.936;lc_ctype=chinese (simplified)_china.936;lc_monetary=chinese (simplified)_china.936;lc_numeric=c;lc_time=chinese (simplified)_china.936" > chinese > 1 锘夸负浠€涔堣繖涓敞鎰忥紝杩欎釜宸ヤ綔
why work chinese , not hindi (and other languages too) , there way can make work?
Comments
Post a Comment