Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-6139

Use mb_substr when cutting display names

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When using languages with non-ascii characters, the substr function that truncates displayed names will sometimes cut in the middle of a multi-byte unicode caracter (ex: in recently viewed items/contacts).

      As discussed during the translation sprint, we should wrap over substr calls with a CRM/Utils function that uses mb_substr if available.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: