Hello world,
When working with strings contain only the characters from the Russian alphabet, i noticed one interesting thing
for example see the following code (администратор is "administrator" in russian)
$a = "администратор" ? $a
output here is truly disgusting piece: 0♦4♦<♦8♦=♦8♦A♦B♦@♦0♦B♦>♦@♦
However, if you write:
$a = "администратор!" ? $a
output what and must be an: администратор!
i.e. if the string contains only the russian word the result is not valid, but if the string contains at least one space, character (!@#$...) or number (i.e. at least one symbol not Russian alphabet) we get the correct result
The following code produces the correct result too (not through a variable) ? "администратор"
The CODE PAGE and OS Language in Russian and it does not matter run it locally or remotelly, in both cases the result is the same
Want to know your opinion on this issue. Thank you in advance.
|