Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Polish characters  (Read 2326 times)

0 Members and 1 Guest are viewing this topic.

Crash47

  • Newbie
  • *
  • Posts: 6
    • View Profile
Polish characters
« on: October 19, 2010, 05:14:24 pm »
Hi!

I don't know how to use Polish characters for SFML.

German characters are working:
Code: [Select]
Title.SetText("ü, ß, ä, ö");

But if I use Polish font and characters they don't work.
Code: [Select]
Title.SetText("ł, ź, ń, ś, ó");

How can I use Polish characters with Polish words, not 0x...?
Code: [Select]
Uint32 MyCharset[] = {0x4E16, 0x754C, 0x60A8, 0x597D, 0x0}; // a set of unicode chinese characters

Crash47

  • Newbie
  • *
  • Posts: 6
    • View Profile
Polish characters
« Reply #1 on: October 21, 2010, 02:50:11 pm »
BUMP

Please help me!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Polish characters
« Reply #2 on: October 21, 2010, 03:32:56 pm »
You need to build a charset which contains the UTF-32 codes of the polish characters that you want to display. You can find some Unicode converter with Google, if you need one.

Note that the charset need to contain all the characters that you want to display, so it must contain ASCII as well.
Laurent Gomila - SFML developer