[DC-338] Add setting charset to sandbox Created: 08/Dec/09  Updated: 10/Dec/09

Status: Reopened
Project: Doctrine 1
Component/s: Sandbox
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Ladislav Prskavec Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 0
Labels: None
Environment:

mysql 5, ubuntu 9.04, php 5.2.10



 Description   

I try set charset adding to config.php in sandbox:
$manager = Doctrine_Manager::getInstance();
$manager->openConnection(DSN, 'doctrine');
$manager->setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_PEAR);
$manager->setCharset('utf8');

and this doesn't work.

Please update sandbox and give the how to right setCharset in this example. Almost used utf8.



 Comments   
Comment by Jonathan H. Wage [ 08/Dec/09 ]

This works properly. I test setCharset('utf8') and SET NAMES 'utf8' query is issued to the database properly. Please include reproducible code/information in your issue.

Comment by Ladislav Prskavec [ 09/Dec/09 ]

Try this example on my github http://github.com/abtris/doctrine-sandbox, screenshots included.

Comment by Ladislav Prskavec [ 10/Dec/09 ]

Try my sources, i now solution with add connection, but will be better support in manager for set encoding by options.





Generated at Mon Sep 01 18:40:34 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.