Jump to content
  • Advertisement
Qwertyman

Displaying non-English FB Usernames In-Game

This topic is 426 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!