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 )) ![alt text][1] 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. [1]: http://s12.postimg.org/s2mrddi4d/Font.png
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.
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, Malayalam in the text area, its shown differently for some of the characters (single characters are split up). Thanks, Ben
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. My 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.
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.
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 )) ![alt text][1] 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. [1]: http://s12.postimg.org/s2mrddi4d/Font.png
– DoTA_KAMIKADzEAnyone got a solution for this? Its 2016 and problem exits.
– chandruchiku