如何在命令shell中使用PHP中的特殊字符?

For school we are forced to write a small program in BASIC or "any other language" so I will be doing it in PHP.

I have to run it through command prompt, so thought I'd make a few improvements to the "UI" of the shell with lines etc. I used ALT+nnn to insert them into my code, but when I execute it in the shell I get weird characters in it's place.

Does anyone know how to fix this?

Thanks

From this SO thread

  • switch font to Lucida
  • then to switch shell code page to UTF-8, type:

    chcp 65001

This seems to be very buggy on Windows, so you are maybe better with codes like 850 (Latin-1, the MS-DOS equivalent of 1252 in Windows). I mean chcp 850.