SFML community forums

Help => Graphics => Topic started by: Dravere on December 01, 2008, 01:00:44 am

Title: sf::String uses UTF-16 BE or LE?
Post by: Dravere on December 01, 2008, 01:00:44 am
Hello,

The question is in the title. What does sf::String use for UTF-16 Strings, the Big Endian or the Little Endian version? Also what about the sf::Event::TextEvent::Unicode attribute?

Thx for your help.

Dravere

P.S: Just started a few days ago with SFML. As far I pretty much like your library, good work!
Title: sf::String uses UTF-16 BE or LE?
Post by: Laurent on December 01, 2008, 07:52:10 am
First of all, SFML will no longer use UTF-16 (UCS2 actually) but UTF-32 in the coming 1.4 release.

It uses the native endianess of the platform; so it may be UTF-32 LE on Windows and Linux platforms, and UTF-32 BE on MacOS platforms.
Title: sf::String uses UTF-16 BE or LE?
Post by: christoph on December 01, 2008, 08:17:50 pm
Hehe, Linux has a lot of BE platforms, too. It's not that uncomon to run Linux on some PowerPC machine ;)
Title: sf::String uses UTF-16 BE or LE?
Post by: Laurent on December 01, 2008, 09:45:59 pm
Ok, well, just ignore the last part of my sentence ;)
Title: sf::String uses UTF-16 BE or LE?
Post by: Dravere on December 02, 2008, 03:07:38 pm
Thank you for the information.

What is the timetable on version 1.4? I just saw in the documentation that there will be also a very helpful unicode class. :)
Title: sf::String uses UTF-16 BE or LE?
Post by: Laurent on December 02, 2008, 03:49:39 pm
Version 1.4 should be released within one or two weeks.