31
Général / Re : Problème d'encodage avec MySQL
« le: Août 02, 2012, 11:20:32 pm »
J'ai regardé ici: http://www.sfml-dev.org/documentation/2.0/classsf_1_1String.php#details
Selon la doc, Je cite:
" Utility string class that automatically handles conversions between types and encodings.
sf::String is a utility string class defined mainly for convenience.
It is a Unicode string (implemented using UTF-32), thus it can store any character in the world (european, chinese, arabic, hebrew, etc.).
It automatically handles conversions from/to ANSI and wide strings, so that you can work with standard string classes and still be compatible with functions taking a sf::String. "
En conclusion, essaye UTF-32. Sauf que selon ce que je viens de lire, la SFML est suposé faire elle-même la conversion.
EDIT: Je viens de penser à ton problème, je crois que tu dois utilisé la classe string de base du c++ et non celle de la sf. Si tu pourrais aller vérifier.
Selon la doc, Je cite:
" Utility string class that automatically handles conversions between types and encodings.
sf::String is a utility string class defined mainly for convenience.
It is a Unicode string (implemented using UTF-32), thus it can store any character in the world (european, chinese, arabic, hebrew, etc.).
It automatically handles conversions from/to ANSI and wide strings, so that you can work with standard string classes and still be compatible with functions taking a sf::String. "
En conclusion, essaye UTF-32. Sauf que selon ce que je viens de lire, la SFML est suposé faire elle-même la conversion.
EDIT: Je viens de penser à ton problème, je crois que tu dois utilisé la classe string de base du c++ et non celle de la sf. Si tu pourrais aller vérifier.