Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix Title extraction in Drupal 7 import script #192
As shown in this Github Issue: Problem extracting titles from Drupal 7 site,
title: !binary |- SGVsbG8gV29ybGQ=
I have fixed this bug entirely by forcing the strings into Unicode format (and stripping any preceding and ending whitespace with
'title' => title.strip.force_encoding("UTF-8"),
That way, it works even for those pesky titles with stray \xE2 junk that screws everything up.
Please merge this pull request to fix the Drupal 7 importer. Try it out.