Project

General

Profile

Patch #41954 » 0012-Convert-wiki_content_versions-data-binary-to-utf-8.patch

Ko Nagase, 2025-03-30 12:05

View differences:

lib/tasks/extract_fixtures.rake
80 80
              else
81 81
                record[col.name] = record[col.name].getutc
82 82
              end
83
            elsif col.type == :binary
84
              utf8text = record[col.name].dup.force_encoding('UTF-8')
85
              if utf8text.valid_encoding?
86
                record[col.name] = utf8text
87
              end
83 88
            end
84 89
          end
85 90
        end
(14-14/14)