It took me a while to install a proper font to dispaly the characters.
On my system the above script works as intended.
There might be multiple reasons why the script doesn't work properly on your pc;
for example (incomplete list):
1) I initially wondered, why you set the codepage in your OP to 1256.
Now i think: Maybe the default ANSI codepage of your system is not 1252 but 1256.
You may check this with a batch linked here:
viewtopic.php?f=3&t=6108#p49091
2)Another possibility is, that you don't use notepad to create the above batch (other editors may use different codepages).
3) It also might be, that your browser (or mine) doesn't display the characters correctly, so we talk about different characters.
penpen