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

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Sep 13 15:20:09 CEST 2008


Hi!

Cyrill Helg wrote:
> 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....

The charset of the database is $TYPO3_CONF_VARS['BE']['forceCharset']. If that is empty, use iso-8859-1.

BE and FE automatically convert data to the proper character set. At least core modules do.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/




More information about the TYPO3-dev mailing list