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

        abdy Abdy Franco created issue -
        abdy Abdy Franco made changes -
        Field Original Value New Value
        Fix Version/s 5.1.0-b1 [ 11703 ]
        Affects Version/s 5.1.0-b1 [ 11703 ]
        abdy Abdy Franco made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.1.0 Sprint 4 [ 131 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          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