Your script correctly extracts the byte stream and saves it as it is. No problems.
Your problem is that the local text editor does not know that it should read the file as cp1255, so it is trying to install cp1252 by default on your computer. You cannot save the file locally as cp1252 so that Notepad reads it correctly because cp1252 does not contain Hebrew characters.
What ultimately will the file or stream of bytes read, which should correctly select Hebrew? If it does not support cp1255, you will need to find the encoding supported by this tool and convert the cp1255 string to this encoding. Suggest that you can try UTF-8 or UTF-16LE (Windows encoding is misleading "Unicode".)
Converting text between encodings in VBScript / JScript can be performed as a side effect of the ADODB stream. See an example in this answer .
source share