I have a url fiel with the option Attempt to fetch the title value from the URL if the Title field is empty. active.

When I enter a url to a page that has wrong encodings (e.g. http://www.enterag.ch/hartwig/index.xhtml), I get the following errors:

Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in check_plain() (Zeile 1572 von /var/www/music/htdocs/public/includes/bootstrap.inc).
Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in check_plain() (Zeile 1572 von /var/www/music/htdocs/public/includes/bootstrap.inc).
PDOException: in field_sql_storage_field_storage_write() (Zeile 448 von /var/www/music/htdocs/public/modules/field/modules/field_sql_storage/field_sql_storage.module).

Comments

Dave Reid’s picture

Title: Crash on wrong encoding » Enable to save HTML title that has wrong encoding

I'm not sure how we can fix the encodings, but we can at least prevent the errors. Committed a fix that will allow the field to be saved without error to 7.x-1.x: http://drupalcode.org/project/url.git/commit/fb08dd9.

Renaming to see if we can figure out how to fix the encoding.