Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron log email truncated: wrong encoding

Discussion in 'E-mail Discussion' started by ChristopherChemist, Jun 7, 2019.

  1. ChristopherChemist

    ChristopherChemist Registered

    Joined:
    Jun 7, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Good day,
    My VPS system is CentOS Linux release 7.6.1810 (Core), cPanel version:11.80.0.13 in a virtuozzo container. Every night the cron log is emailed to me. I view it in Microsoft Outlook. The email message has always been truncated; the last letter in the message is always a "b". When I view the message in Horde Webmail, the entire message is present, but at the place where it is truncated in Outlook, strange characters appear. In Outlook the encoding is "Western European". I changed it to "UTF-8" and suddenly the entire message appeared. I don't want to have to change the encoding every day (it is set by the sender, not the recipient), so I searched for how to change the encoding. I found a solution on serverfault dot com.
    In the WHM terminal, I started the crontab editor by entering
    Code:
    crontab -e
    I added an extra line at the start of the file.
    Code:
    CONTENT_TYPE="text/plain; charset=utf-8"
    The cron log message that arrived the next day displayed without being truncated.
    I hope this helps someone else out. Also, perhaps someone has a more general solution to this problem.
    Chris
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice