Sorry- another afternoon of searching for answers on my own has led me nowhere, so I have to ask for help. I need some basic help getting a unicode file read into my game. First a short example of how I read data into my game...
My game pulls data in from .txt files via TStream=ReadFile("file.txt") and then ReadLine. I process each line to look for embedded script keywords, and everything else gets printed to the screen via DrawText. So, a particular line might read like:
John dropped the book. <drop_item book> The book fell to the floor. I can have this single line translated into Russian easily enough, making sure anything inside of the < > is ignored so not to mess up the game.
My question is: so now that I have a unicode .txt file containing Russian text, what do I need to do to get it working with my game? My normal method of ReadFile and ReadLine does not work of course.
|