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

Author Topic: Error display the euro symbol  (Read 959 times)

0 Members and 1 Guest are viewing this topic.

Tommy22pa

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Error display the euro symbol
« on: November 08, 2012, 09:58:58 am »
Error display the euro symbol, why?
greetings thanks

// Declare and load a font
sf::Font font;
font.loadFromFile("arial.ttf");
 
// Create a text
sf::Text text("hello €");
text.setFont(font);
text.setCharacterSize(30);
text.setStyle(sf::Text::Bold);
text.setColor(sf::Color::Red);

// Draw it
window.draw(text);

(hello ◘)
« Last Edit: November 08, 2012, 10:12:08 am by Laurent »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Error display the euro symbol
« Reply #1 on: November 08, 2012, 10:11:50 am »
Try this instead
sf::Text text(L"hello €");
Laurent Gomila - SFML developer

 

anything