utf 8 - DateTime objects from MongoDB have unreadable characters in Object Definition -


whenever fetch data mongodb collection, , 1 of fields has datetime object, this:

object(datetime�����w   )[359]   public 'date' => string '2012-12-12 00:00:00' (length=19)   public 'timezone_type' => int 3   public 'timezone' => string 'america/caracas' (length=15) 

i when outputting var_dump utf-8 charset in browser, when using print_r, xdebug_var_dump, accessing public methods...

i error if try output data of 1 of public properties:

invalid utf-8 sequence in argument in (file>)

i using mongodb 2.4.3.

any suggestions?

edit 1: thought symfony-related problem, using mongo shell , when insert new entry, have same problem, issue's not coming symfony, it's irrelevant, unless has fact db schema created symfony.

the real issue defective installation of mongo extension php 5.4. ended using liip.ch's amazing php package os x, replacing mamp me.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -