R studio doesn't have good Hindi support

I have been using r studio for many years and I never noticed it until recently. When I wanted to write my book in R studio through bookdown I chose Hindi as my language.

It turns out that when I type Hindi the curser moves ahead of the words and it becomes very hard to understand which word are you on. Especially when you want to delete something.

Then I switched to vscode and I found it had no such problem writing Hindi Unicode. So did atom. Somehow rstudio have such problem.

Just find any text in Hindi from Google and try to delete it and you will understand what I mean. Let me find some random text for you.

मोहनदास करमचन्द गांधी (२ अक्टूबर १८६९ - ३० जनवरी १९४८) भारत एवं भारतीय स्वतंत्रता आंदोलन के एक प्रमुख राजनैतिक एवं आध्यात्मिक नेता थे। वे सत्याग्रह (व्यापक सविनय अवज्ञा) के माध्यम से अत्याचार के प्रतिकार के अग्रणी नेता थे, उनकी इस अवधारणा की नींव सम्पूर्ण अहिंसा के सिद्धान्त पर रखी गयी थी जिसने भारत को आजादी दिलाकर पूरी दुनिया में जनता के नागरिक अधिकारों एवं स्वतन्त्रता के प्रति आन्दोलन के लिये प्रेरित किया। उन्हें दुनिया में आम जनता महात्मा गांधी के नाम से जानती है। संस्कृत भाषा में महात्मा अथवा महान आत्मा एक सम्मान सूचक शब्द है। गांधी को महात्मा के नाम से सबसे पहले १९१५ में राजवैद्य जीवराम कालिदास ने संबोधित किया था।[1]। उन्हें बापू (गुजराती भाषा में બાપુ बापू यानी पिता) के नाम से भी याद किया जाता है। सुभाष चन्द्र बोस ने ६ जुलाई १९४४ को रंगून रेडियो से गांधी जी के नाम जारी प्रसारण में उन्हें राष्ट्रपिता कहकर सम्बोधित करते हुए आज़ाद हिन्द फौज़ के सैनिकों के लिये उनका आशीर्वाद और शुभकामनाएँ माँगीं थीं।[2] प्रति वर्ष २ अक्टूबर को उनका जन्म दिन भारत में गांधी जयंती के रूप में और पूरे विश्व में अन्तर्राष्ट्रीय अहिंसा दिवस के नाम से मनाया जाता है।

Please fix this if possible.

1 Like

I saw exactly what you mean when I cut and pasted your example into an open document -- the cursor is far ahead of the text, but the backspace isn't and it would drive me batty to try to move to a single character to edit.

There is a work-around for reasons that are a mystery to me, but may work for you.

Open a new Rmd file and paste your text. If you have my experience you'll see the same thing. But if you save and then without closing File | Reopen with Encoding [UTF-8], the behavior reverts to normal, as far as I can tell, since I'm totally unfamiliar with that alphabet.

Thanks a lot for explaining things to me. But I don't think it's feasible to open it like that for every next Rmd file. Please help me out with it.

and it's not just in Rmd. I got the indian election data today. somehow when I translated into data.frame it has the same problem there as well.


columns like this translates to.


I would totally understand when there aren't enough libraries for sentiment analysis or language usage per se in Hindi. But at least basic writing and data frames should be able to show it.

however it works well with graphs and vectors but with data frame it doesn't show me the data.

Please do tell me how can I fix these things. It is highly practical for me especially when I will try to analyse the twitter and facebook data in a month.

Although rstudio developers are also part of this community, I think you have better chances if you file an issue on github.

Thanks for replying. I thought there might be something that I don't know about text editer.

And even after reopening the file with utf-8 as @technocrat mentioned. It doesn't solve the problem.

So I have opened a github issue.

Just as a clarification, we don't open issues here per se, we ask for help to other users and we try to help each other, this is a community of users, that is why I advise you to open an issue on github, because that is the right place to report a bug and ask for a fix.

1 Like


That's exactly what I am trying to say. I was looking for help and now I have opened an issue on github.

I just remark that, because this text is a little confusing, so, do not take me wrong, there is no bullying here, this is not stack overflow :rofl:


I am really very sorry. By issue I meant question. English is not my primary language so I do make such mistakes.

Never mind, english is not my native language too, so I totally understand you.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.