How can I use special characters in PHP in the shell?

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

I need to run it through the command line, so I thought I'd make some improvements to the shell "UI" with lines, etc. I used ALT + nnn to paste them into my code, but when I execute it in the shell I get weird characters at this point.

Does anyone know how to fix this?

thank

+3


source to share


1 answer


From this SO thread

  • change font to Lucida
  • then to switch the wrapper code page to UTF-8 type:

    chcp 65001



It looks very bad on Windows, so you might be better off with codes like 850 (Latin-1, MS-DOS equivalent to 1252 on Windows). I mean chcp 850

.

0


source







All Articles