grakovski 0 Light Poster

Hello, i have SAMP (san andreas multiplayer) server and hostname is on cp1251 or cp1252 (i dont know)
Here is output:

Áúëãàðñêè Òðúêèíã Ñúðâúð!

but right way is:

Български Тръкинг Сървър!

Here is 2cyr site: http://2cyr.com/decode/?lang=en (i checked first name in them)

The string which is needed to check is the hostname:

$server['s']['name']

I need to check if contain cp1251/cp1252 to convert in utf8 and it shows right in cyrilic.
Thanks for any answers :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.