Skip to main content

Special characters in upcp log causing email truncation

Comments

8 comments

  • cPanelMichael
    Hello, I can't reproduce this behavior on email clients such as Gmail. Are you able to reproduce this issue across multiple email clients, or is it isolated to a specific one? Thank you.
    0
  • David July
    Hello Michael and thank you for your response. The issue of the email being truncated appears to be limited to Outlook 2013. Other email clients appear to handle the special characters a little better. For example, K-9 Mail on Android displays three "question mark in diamond" symbols for each special character in the message (see attached). Alternately, the plain text email viewed in the inbox shows the same characters I pasted above, which appear in the log file itself.
    0
  • cPanelMichael
    This suggests the issue is with the individual email clients. For instance, with Outlook 2013, check to see if this thread on their support forum helps:
    0
  • David July
    Thank you, but those settings refer to outgoing messages. The special characters only started appearing in the log recently. Is there a process by which I can request an enhancement so the log file goes back to using standard question mark ("), apostrophe (') or grave accent (`) characters as it has previously? Thanks!
    0
  • cPanelMichael
    The special characters only started appearing in the log recently. Is there a process by which I can request an enhancement so the log file goes back to using standard question mark ("), apostrophe (') or grave accent (`) characters as it has previously?

    You can open a feature request for the addition of a template for the upcp cron email notification via: Submit A Feature Request However, I'd also like you to review the following third-party URL and let us know if this makes a difference in Outlook 2013: Why Outlook email messages show unreadable characters Thank you.
    0
  • David July
    I reviewed the third-party page as requested. Here are the results. Outlook: the configuration already had the "'Straight quotes' with 'smart quotes'" option disabled. Word: the Latin string value under the \Fonts key had a value, however I updated the fonts to match those set in Outlook and confirmed that the registry was updated accordingly. Message: the encoding option for the ucpc log file message is set to "Western European (Windows)". Sure enough, when I switched this to "Unicode (UTF-8)" the entire message displayed. Although the cPanel log files were the thing to change, it seems to me that Outlook is at the heart of this issue. Since manually switching the message's encoding to UTF-8 is possible for Outlook users, I consider this to be a suitable workaround. Thank you for your assistance with this.
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • jasammilan
    I had the same problem with email truncation on line "MySQL version b" and character recognition in some other files. Cause of the email truncation is on first not recognized character (" - left double quotation mark) in upcp log. I have fix this by setting locale from C to en_US.UTF-8 or you can set some other UTF-8 character set. Edit file /etc/sysconfig/i18n and change line with LANG variable to look like this:
    LANG="en_US.UTF-8"
    Now reload locale with command:
    source /etc/sysconfig/i18n
    or if you use sudo:
    sudo source /etc/sysconfig/i18n
    With command "locale" you can verify that the system LANG is set to "en_US.UTF-8":
    root@cp [~]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= root@cp [~]#
    0

Please sign in to leave a comment.