Hello guys, I've never used a forum before, I always search for an answer to a problem, but this time.. Has been more than a half week and a still don't get a clue about what to do!
I'm brazilian, and because of it, i got to translate my games to my language (portuguese), but there's a problem, my language got some accents like "é á ç ô" (i don't know if you guys can see it..)
There's the things I already tried:
- change the encoding of my source to Portuguese (Codepage 860) didn't work..
- change the encoding of my source to UTF-8 didn't work..
- use the ALLEGRO_USTR* and it didn't work eather...
I'm really lost, can sameone help me?
That's my code:
Thank you very mutch guys!
]]>change the encoding of my source to UTF-8 didn't work..
Try doing it in another editor. If nothing else helps, load the strings from a text file encoded in UTF-8.
]]>I'm using Microsoft Visual Studio 2012, I need to use it because i'm gonna embed Windows Forms to it... How can I do that?
]]>Open the file with a software called Notepad++. Then go to Encoding menu and Choose converting to UTF-8 without BOM. VS should keep that coding in later work.
Oh, and please note, that non-ANSI characters will most probably not show in the windows command prompt (cmd.exe) no matter how much you try unless you change the font or use some character translation algorythm (I guess I use something like this to get Polish chars like ąęóćśźż, but I do not remember the code now), but it should work just fine in-game.
]]>That's pretty strange that changing encoding didn't help you. How did you do that? You're probably doing it wrong. You should go to file->advanced save options and choose Unicode (UTF-8 Without Signature) - Codepage 65001, it is at the end of the list. Did you choose this encoding?
]]>You guys are right, I was doing it wrong
I changed on Notepad++ to without signature and it work!
Thank you very mutch for the help!
]]>Welcome Bruno Guerra. I'm from Brazil too. This forum is awesome. If you dont find the solution to your problems here, will not find in any place!
]]>If you dont find the solution to your problems here, will not find in any place!
Always excepting girl friends, of course.
]]>