Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4222

Import Manager: UTF-8 encoded names are imported as garbage characters (WHMCS)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0-b1
    • Fix Version/s: 5.1.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      When importing clients from WHMCS, if they have names in UTF-8 encoded languages, such as Chinese, they are stored in the database as garbage characters.

      In the WhmcsMigrator::decode() function, add the following code block before the return statement.

              if (mb_detect_encoding($str) == 'UTF-8') {
                  return html_entity_decode($str, ENT_QUOTES, 'UTF-8');
              }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            abdy Abdy Franco
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Jun/21

              Agile