Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

antareus

Unicode and configuration files

This topic is 5539 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

I''m writing an app that could handle and store international data. Right now I don''t know of any chat networks that allow Unicode usernames, but it is conceivable that it could happen very soon. Therefore I need my engine to deal in Unicode data. 1. Should I use wchar_t, or ints? Apparently 16 bits isn''t enough to store all the characters in the world. 2. What kind of format would be best for storing this data? I''m cautious about XML, it seems pretty unnecessary in this case. I''d like the files to be simply "name=value", kind of like INI files, but I''m unsure whether the INI files would support Unicode. I''ll be writing everything out as Unicode, and loading everything back in. The individual pieces that need to will convert to/from other formats (mostly the networking side). I''d have used the standard library to do this, except w[i|o]fstream doesn''t work as expected with wchar_t because VC7.1 doesn''t include a codecvt to handle it.

Share this post


Link to post
Share on other sites
Advertisement

  • 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!