Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » How do i can put accent mark in words on allegro 5?

This thread is locked; no one can reply to it. rss feed Print
How do i can put accent mark in words on allegro 5?
Ailton Silva
Member #12,601
February 2011
avatar

Hello folks!

I have a little problem, in allegro 4 we had a function called "set_uformat" and using it we could draw words with accent mark, but i did not found a similar function in allegro 5; I'd like to draw words like: Olá, Opções, Pão, Pôr, etc....
So, How do i can put accent mark in words on allegro 5???

Thomas Fjellstrom
Member #476
June 2000
avatar

So, How do i can put accent mark in words on allegro 5???

Use UTF8, and a unicode font.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Matthew Leverton
Supreme Loser
January 1999
avatar

Make sure you save your source code or text files with UTF-8 encoding. If you do that, it should just work (assuming the font has those characters).

Ailton Silva
Member #12,601
February 2011
avatar

worked after converting my .cpp files to UTF-8
Thnaks a lot :)

Go to: