Closed (won't fix)
Project:
MongoDB
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2013 at 17:47 UTC
Updated:
17 Aug 2013 at 01:56 UTC
Hi,
Made new issue, but may be related to: http://drupal.org/node/910726
I got this error using latest dev:
>
MongoException: non-utf8 string: in MongoCollection->save() (line 198 of /sites/all/modules/mongodb/mongodb_field_storage/mongodb_field_storage.module)
Is the patch in #910726: Drupal Crashes when writting utf8 to page cache or someone else in mongodb may be not complete?
Greetings, Martijn
Comments
Comment #1
giorgio79 commentedI am getting this as well, and cannot do a migration as drush halts with this error. Adding mongo.utf8 = 0 to php.ini no longer works as it worked only up to Mongodb 1.1.
Perhaps the module could add iconv function
http://stackoverflow.com/questions/5920626/mongodb-php-utf-8-problems
Comment #2
giorgio79 commentedI researched this further, and I see lots of issues:
I notice the module files have utf8 without bom encoding according to notepad++, but drupal modules should be either utf8 or ansi.
I also printed out the entity where mongo complains, and the node title and the geofield seem garbled, but these are proper utf8 columns in mysql, so either drush or mongodb module messes the data up.
PS: Geofield geom data seems suspicious. It is stored as bin in mysql, and mongo seems to choke on it. Raised a new issue for that #2022281: Ability to specify Mongo Bin Data for fields
Comment #3
marcingy commentedThis is not a mongo issue, data sent to mongo should be utf-8
Comment #3.0
marcingy commentedkughukg