Eslam Hanafy
Eslam Hanafy

Reputation: 637

can't display Arabic characters in unity using c#

Hi I have a game in unity and use c# and I made login with Facebook using Soomla profile package but my problem is when the user logged in if his username in Arabic it display like that

\u062a\u064a\u0646

I try to some thing like this

 byte[] bytes = Encoding.Default.GetBytes(profile.Username);
 string my = Encoding.ASCII.GetString(bytes);
username.text = my + " "+Lang.MainScreenWelcome;

but nothing work.

Note i know that unity didn't support Arabic but in normal it display like that

ت ي ي ي ن ش

so I am using plugin for that in normal case but this case with Facebook it didn't work

Upvotes: 0

Views: 56

Answers (0)

Related Questions