|
|
Re: Unicode issue
[Re: DavidLancaster]
#229924
10/01/08 15:55
10/01/08 15:55
|
Joined: Jul 2006
Posts: 40 North Europe
DeepReflection
Newbie
|
Newbie
Joined: Jul 2006
Posts: 40
North Europe
|
@ David Yes, and No! the binary representation in the text file, I'm pretty sure still will be in some byte/char/8bit length, the problem is how this is encoded. As fast as there are string/char functions and so on involved You must know how it was implemented. I was tempted to make a hasty comment, but the sanity hold me off, and I locked UTF up a bit on Wikipedia UTF  It's a "bit" complicated, least to say. As a fast and dirty trick, I would open up your text file with a HEX editor of some kind, try other applications like Wordpad or MS Office, Open Office, Google translator function on Internet usw. Check the differences and or put these different code into your test for GameStudio until it gets right. Then you know at least what application you have to use to create textfiles for the game. Your example reminds me when I tried to translate a Japanese text file, I had to try out some applications before the cut and pasted text was considered anything else then (/%&&/%¤"#% by Google translator. 
Whoever has the gold makes the rules.
|
|
|
Re: Unicode issue
[Re: DeepReflection]
#229925
10/01/08 16:17
10/01/08 16:17
|
Joined: Aug 2003
Posts: 7,440 Red Dwarf
Michael_Schwarz
Senior Expert
|
Senior Expert
Joined: Aug 2003
Posts: 7,440
Red Dwarf
|
that could be indeed a problem.
Most windows applications save textfiles with ISO-8859-1 or ANSI encoding, perhaps what the engine needs is a file with UTF-8 encoding(preferably without signature). Have you tried re-saving the file in notepad by selecting UTF-8 encoding?
Or maybe even the other way around, I dont recall how it was exactly right now. In any case, it couldn't hurt to try different file encodings.
"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
|
|
|
Re: Unicode issue
[Re: BES]
#230152
10/03/08 09:41
10/03/08 09:41
|
Joined: Sep 2007
Posts: 158 Guangzhou China
bomber
Member
|
Member
Joined: Sep 2007
Posts: 158
Guangzhou China
|
I'm not sure why ur having this problem, this is the code in my game(it has Chinese in it) string strChat0[1000]; string strChat1[1000]; string strChat2[1000]; string strChat3[1000]; string strChat4[1000]; string strChat5[1000]; string strChat6[1000]; string strChat7[1000]; string strChat8[1000]; font newfont4me = "Arial",1,20; text txtChat { pos_x = 680; pos_y = 500; layer = 30; strings = 9; font newfont4me; flags=visible; string = strChat8, strChat7, strChat6, strChat5, strChat4, strChat3, strChat2, strChat1, strChat0; red=255; blue=0; green=0; } But it works just fine maybe it's cause I have a Chinese version of Windows^
Last edited by bomber; 10/03/08 09:43.
"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know." ————Donald Rumfeld
|
|
|
|