Jump to content
  • Advertisement
Qwertyman

Displaying non-English FB Usernames In-Game

This topic is 504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My game (built on the Unity platform, making use of EZ GUI) requires players to log into Facebook. However, when the player is using a language other than English on Facebook, I'm unable to display the localized Username (which is the same as the FB Username) within the game. Any ideas on how this can be tackled?

PS: Detecting the OS language doesn't really help here because, for all you know, the player might be using one language for the OS, but another one for their Facebook, so.... 

TIA!

Share this post


Link to post
Share on other sites
Advertisement

If all is well, FB has defined an encoding for the text, which you should simply follow. If not, FB is seriously borked, since you cannot deduce encoding from the text itself, you need some external mechanism to tell you.

EDIT: If you get it using eg HTTP, the protocol may define the encoding of its contents.

Edited by Alberth

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!