[TYPO3-dev] charset troubles when inserting data manually into table, how to detect and handle that?

Cyrill Helg phlogsmailinglists at gmail.com
Sat Sep 13 01:13:59 CEST 2008


Am Saturday 13 September 2008 schrieb Steffen Kamper:
> 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.

yes, ok. But how can I get the current charset of the installation? It would 
be nice to just have a function that takes care of it....

>
> vg Steffen
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev






More information about the TYPO3-dev mailing list