[TYPO3-dev] charset troubles when inserting data manually into table, how to detect and handle that?
Steffen Kamper
info at sk-typo3.de
Sat Sep 13 01:03:06 CEST 2008
Cyrill Helg schrieb:
> Hi there
>
> I'm importing data to a table inside TYPO3. I receive the data with a xml file
> encoded in utf8.
>
> When the server/installation is setup to use utf8, there is no problem, but as
> soon as that is not the case I come into troubles. Of course I can solve this
> manually with a utf8_decode, but is that a good way? And how would I find out
> what charset is used in the TYPO3 installtion? Whats the TYPO3 way of doing
> all that correctly anyway?
>
> Thanks a lot for your hints.
>
> Cheers
> Cyrill
Hi Cyrill,
take a look at t3lib_cs->conv for charset coversion. As this conversion
is string based you can use it for inserting the values into table.
vg Steffen
More information about the TYPO3-dev
mailing list