[TYPO3-dev] typo3 5.0
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Oct 30 16:19:43 CET 2006
Dmitry Dulepov schrieb:
> Hi!
>
> Martin Kutschker wrote:
>
>> R. van Twisk schrieb:
>>
>>>
>>> be careful with serialized arrays in a database.
>>> If your data is in latin1, and at some point you want to upgrade
>>> to utf-8 (database) then your serialized arrays might break.
>>> when you let iconv or mysql do the conversion.
>>
>>
>> How come? Why did iconv break your array?
>
>
> Some characters may translate into two byte utf-8 characters but PHP's
> array length will not change in the serialized form. This way, for
> example, you may loose all your templavoila mapping if you have
> non-english charaters in them...
I see. But only a minor problem if the updating scripts knows that it deals
with serialied arrays: simply unserialize, convert and serialize again.
Note that any updating script also have to know about XML because if the
charset declaration.
Masi
More information about the TYPO3-dev
mailing list