Email piping to script utf8

Daniel Ahern

Registered
Sep 6, 2016
3
0
1
Seoul
cPanel Access Level
Root Administrator
When piping an .eml from the command line into a php script, everything runs fine. However, when piping from email, file names of attached emails record as latin1 instead of utf8, e.g. López instead of López.

I've done 'php -i' piping from an email and from the command line. What I've noticed and think could fix this is that $_SERVER['LANG'] => en_US.UTF-8 from the command line but not from piping the email. How do I set this environmental php variable so it is set when piping from email?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @Daniel Ahern,

Could you open a support ticket so we can take a closer look at the piping script and how it's configured? You can post the ticket number here once it's opened and we'll link this thread to it.

Thank you.