[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

mysql 5, ubuntu 9.04, php 5.2.10


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);

and this doesn't work.

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

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 Wed Nov 25 07:30:59 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.