Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to make pdo run set names utf8 each time I connect, in zendframework?



How to make pdo run set names utf8 each time I connect, in zendframework?..

Answer / Vikas Agarwal

To make PDO run SET NAMES UTF8 each time you connect in Zend Framework, follow these steps:n1. Create a new Db adapter that extends Zend_Db_Adapter_Pdo_Abstract.n2. Override the __construct() method and call the parent constructor with the necessary configuration settings.n3. Add the following code to set the charset:
```php
$this->_connection->exec('SET NAMES utf8');
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

How to check whether a form posted or not in the zend framework?

1 Answers  


How to render view file from controller in zend framework?

1 Answers  


How to include css from controller and view in zend

1 Answers  


Why should we use framework?

1 Answers  


Which class extend the zend model?

1 Answers  


Writing a subquery using zend db?

1 Answers  


Explain how routing works?

1 Answers  


What is the zend file upload and element decorators?

1 Answers  


how to remove all dtddwrappers and labels on zend form elements?

1 Answers  


How to set 'selected' value in select box dropdown list?

1 Answers  


What is zendauthentication?

1 Answers  


How to install form component in zend framework?

1 Answers  


Categories