Hi Artur,
especially the 2nd one looks interesting. Thanks
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
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
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
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
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' =
: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
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' =
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
@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
. 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
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
]
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
13 matches
Mail list logo