- Home /
Display regional language texts in unity
Hi, We are using unity 5 for development. We need to display our regional languages such as Tamil, Malayalam, Hindi, Gujarati in the game scene, but when these language texts are copied in text area its shown re-edited characters and special characters, even we tried to display using the same through script (in script it displaying fine) and xml file it behaving the same. Searched in unity forums but no help available except some 3rd part font creators like TextMesh Pro. Could you please help us to resolve this issue.
Thanks, Ben
Here you have, I'm using just clean Unity's example project as background and default Arial font that comes along with Unity, so no tricks. Just changed Font size and color in order to see something ))
Also I used google translate to get Hindi, so if it is nonsense text then complain to google :)
P.S. What I'm trying to say is - you have something on your end and we don't know what, provide some more info, maybe you have messed with codes/extensions/plugins or whatever else.
Anyone got a solution for this? Its 2016 and problem exits.
@DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE
What you see written in Unity in Hindi should look like this:
"में हिंदी का उपयोग कर सकते हें"
हिंदी is not rendered Correctly. The " ि " gets rendered After it should be.
and the "ं" gets masked by the " ि ".
You can try the same thing in any other Text Editor it will look as seen on the Text above.
I apologize for finding a fault but I'm also stuck on this Problem.
I have been going through the following in Unity Forums: http://forum.unity3d.com/threads/unicode-font-rendering-broken-with-devanagari-fonts.251788/
Seems to have given solutions for Hindi but not Gujarati.
Answer by nareshkumaryakkala · Mar 12, 2016 at 02:48 PM
This is the issue with unity font system, Unity doesn't read/apply GPOS and GSUB tables. I have created custom font asset and custom text component to solve this issue.
Please check my blog post regarding this.
Regards, Naresh Kumar Yakkala
you have done a great job,Thanks a lot,$$anonymous$$an
Thanks,. I read your post on the link. But a detailed tutorial for beginners would be much helpful.
Hi naresh. I have tried your approach. Its working but how can i apply it for UI text? Will it support multi line sentence.
Answer by dr3th · Apr 02, 2015 at 06:18 PM
You need a Font package the supports the Languages, if the font doesn't have the supported Devanagari characters for hindi and so on, it will just render as nonsense.
Hi, Thanks for your reply. What happened to me is, when i enter the texts translated in Tamil, $$anonymous$$alayalam in the text area, its shown differently for some of the characters (single characters are split up).
Thanks, Ben
Answer by Tarlius · Apr 03, 2015 at 08:20 AM
If its not the fonts, you should check your file encoding. Unity (and c# in general) defaults to utf8. Its possible for example that your text editor is opening and saving in a regional format rather than utf8 (for Japanese you get this kind of fun when someone uses shift-jis instead of utf8).
I would also recommend avoiding the use of non-ascii characters in scripts... Monodevelop's support is somewhat patchy (and you're also open to the same encoding problems I mentioned above)
Hi Tarlius, Thanks for the reply. Could you please let me know the steps and which files i have to store in utf-8 format.
$$anonymous$$y issue if the word 'ത്ത്' in malayalam language is display as ത് ത (as individual characters) when its in unity. In scripting & xml its shown fine.
Could be a problem converting between encodings, but I don't know much about the language :/ As the others have said it could also be a problem with fonts though. Encoding problems usually just give you squares and/or Chinese characters though.
Hi Guys, me too facing problem i am using Tamil language in my game,i tried out more than 20 Tamil fonts.The problem was with Unicode and some dll.i am not an Expert in those,Seeks someone help.Please some one come up to help us.I will provide all assistance with the language.
Answer by nayakshasvat · Aug 07, 2020 at 09:59 AM
You can check out this new asset, works with both Text and TextMeshPro. Cheapest and Best one on the Asset Store. Even works with the Sanskrit language.
https://assetstore.unity.com/packages/tools/input-management/hindi-text-corrector-175758
Your answer
![](https://koobas.hobune.stream/wayback/20220613191951im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is it possible to for a user to add another Mono language to Unity? 2 Answers
How to change monodevelop errors & warnings language 3 Answers
Does Unity have an interface in French? 1 Answer
Problem getting month name in Malay language,How can i get current month name in Malay language? 0 Answers
Picking a language... 1 Answer