AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-24 Thread Christian Ebert
Hi Artur, especially the 2nd one looks interesting. Thanks

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-23 Thread Christian Ebert
Hi Artur, I can confirm that. Do you have any idea which would be the most elegant way to do the conversion to latin1 before inserting and back after loading? Best Regards Christian

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-23 Thread Christian Ebert
Hi Artur, sorry for my previous reply. This was stupid. Latin1 of course cannot handle utf-8 characters beyond ASCI. But it should work if we restrict the input provided by users to the characters which can be handled with latin1. Best Regards Christian

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Marc Tempelmeier
Hi, I had the same problem and I wrote Data Mappers which do the conversion between Iso and UTF-8 in both directions. A little bit of work, but it works. If someone has a better alternative, I would be glad to hear it :) Greetings Marc -Ursprüngliche Nachricht- Von: Christian Ebert

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Christian Ebert
Hi Marc, yesterday I again played around with this. I did not have the time to test it thoroughly yet but it seems to work if I simply add an event listener to doctrine which inits MySQL session with utf-8. My strategy currently is the following: - Database tables stay encoded using latin1 - The

Re: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Griesi
it seems to also work if the doctrine connection is simply initialised using driverOptions with Set Names.. in local.php ?php return array( 'doctrine' = array( 'connection' = array( 'orm_default' = array( 'driverClass' =

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Marc Tempelmeier
:09 An: fw-general@lists.zend.com Cc: Marc Tempelmeier Betreff: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2 Hi Marc, yesterday I again played around with this. I did not have the time to test it thoroughly yet but it seems to work if I simply add an event listener

Re: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Ludwig Ruderstaller
On 22.10.2012 10:20, Griesi wrote: it seems to also work if the doctrine connection is simply initialised using driverOptions with Set Names.. in local.php it should also work like this: 'doctrine' = array( 'connection' = array( 'orm_default' =

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Christian Ebert
Hi Marc, no I just added an existing Doctrine listener. Nothing individual. But even easier is if you specify this within the doctrine connection config. I already posted that some minutes ago. Best Regards Christian -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives

AW: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Christian Ebert
@Ludwig: yes that also seems to work -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Marc Tempelmeier
. Oktober 2012 10:27 An: Marc Tempelmeier; fw-general@lists.zend.com Betreff: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2 Hi Marc, no I just added an existing Doctrine listener. Nothing individual. But even easier is if you specify this within the doctrine connection config. I

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Christian Ebert
Hi Marc, couldn´t you just initialize the database connection using utf8 and inject a do nothing conversion class in your hydrator? -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2

2012-10-22 Thread Marc Tempelmeier
] Gesendet: Montag, 22. Oktober 2012 10:32 An: fw-general@lists.zend.com Betreff: AW: [fw-general] [ZF2] Set default encoding to ISO in Zend Framework 2 Hi Marc, couldn´t you just initialize the database connection using utf8 and inject a do nothing conversion class in your hydrator? -- List: fw