Forgive me for the title. I am a beginner in programming, and I have two codes that do the same task, which is print the characters with ASCII values 240..255 in Windows Command Prompt. One is in PHP
<?php
for($n=255; $n>=240; $n--){
echo chr($n);
}
?>
And the other in VBScript
For n = 255 to 240 Step -1
WScript.Stdout.Write Chr(n)
Next
But the output characters are different.
Why is that different? Is it because of character encoding thingy?