Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10637 BOM markers in some Moodle files
  3. MDL-10764

Lang files contain quite a few BOM markers

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9
    • 1.9
    • Language
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Using Eloy's grep trick on the lang files revealed a lot of BOM markers. I assume they don't cause any problems in html files, but I think that the php files can be a problem.

      For absolute vi dummies like me, the solution looks like
      grep -rl $'\xEF\xBB\xBF' * //Search folder and subfolders for BOM markers
      vim filename //opens file in vim
      :set nobomb //removes the BOM
      :w //saves the file with the same name
      :q //quit vim

      (credits to Eloy and http://www.tuxfiles.org/linuxhelp/vimcheat.html)

      to perform on a *nix or a mac.

            koen Koen Roggemans
            koen Koen Roggemans
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.