Author Topic: linux server Cyrillic character set  (Read 2051 times)

0 Members and 1 Guest are viewing this topic.

Offline someChanse

  • Major(1)
  • Posts: 8
linux server Cyrillic character set
« on: June 14, 2012, 03:49:43 pm »
I have run the server on archlinux. Script files (*.pas) are encoded ANSI.
Problem: cyrillic characters displayed in game as question marks, like this:
Code: [Select]
???? ??????? ??? ??????When I tried to convert the script files to UTF-8, cyrillic characters steel output as:
Code: [Select]
Широкая электрификация южныхOn windows server does not have this problem.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: linux server Cyrillic character set
« Reply #1 on: June 14, 2012, 05:03:38 pm »
There's no direct solution to your problem, you can only try to workaround it by putting non-ansi text in seperate file and loading it via ReadFile(). Should work just good enough.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline someChanse

  • Major(1)
  • Posts: 8
Re: linux server Cyrillic character set
« Reply #2 on: June 14, 2012, 05:10:08 pm »
There's no direct solution to your problem, you can only try to workaround it by putting non-ansi text in seperate file and loading it via ReadFile(). Should work just good enough.
ok,thanx all the same.
Also, if on a html page avaible cyrrylic symbols, function GetURL also replace them on question marks in string(and even on windows server), but it is offtop, i think.
« Last Edit: June 14, 2012, 05:15:03 pm by someChanse »

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: linux server Cyrillic character set
« Reply #3 on: June 14, 2012, 05:26:58 pm »
It's not. If after applying my solution you still see question marks instead of the desired output then try to ask somebody (from Russia, preferably) if he/she has the same problem, because that may mean that your font settings are wrongly configured. I have a script that works this way and it works just fine for Russians, but outputs some weird chars for me (something similar to your 2nd code block).
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: linux server Cyrillic character set
« Reply #4 on: June 15, 2012, 10:17:29 am »
I think it depends also on the server.

This happened once to me: the letters "ä", "ö" and "ü" are shown properly ingame on a german linux machine. But they were shown as questionmarks on an american linux machine. So it may need to get some language packets or something like that installed. I think windows support always these things, so that you do not need to install something additional - but it seems like linux doesn't.

But still not sure.. ^^