I want to write a script in Python and call it from PHP. Check the operation of the Python side on the console, If you try to make a front with PHP and call it, this
'ascii' codec can't encode characters in position 28-32: ordinal not in range(128)
ascii? Does it work on the console? You can't change the locale
Try it with the python execution command
LC_ALL=\"ja_JP.utf8\" python test.py
It worked when I defined it as.
I don't know.
Thank you P.S. boss.