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

Missing connection charset in CRM_Utils_File::sourceSQLFile

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Symptom: when an extension's upgrader runs a SQL file for the upgrade, if this files contains accentuated characters they are all garbled in the database.

      Root cause: the CRM_Utils_File::sourceSQLFile() function establishes a new connection to the database but does not set the character set to UTF8.

        Attachments

          Activity

            People

            • Assignee:
              seamuslee Seamus Lee
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified