Doctrine 1
  1. Doctrine 1
  2. DC-338

Add setting charset to sandbox

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sandbox
    • 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.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        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.

        Show
        Jonathan H. Wage added a comment - 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.
        Hide
        Ladislav Prskavec added a comment -

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

        Show
        Ladislav Prskavec added a comment - Try this example on my github http://github.com/abtris/doctrine-sandbox , screenshots included.
        Hide
        Ladislav Prskavec added a comment -

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

        Show
        Ladislav Prskavec added a comment - Try my sources, i now solution with add connection, but will be better support in manager for set encoding by options.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Ladislav Prskavec
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: