[TYPO3-dev] Importing content using TCEMain -Text encoding

Andreas Fernandez andreas.fernandez at aspedia.de
Tue Aug 26 16:24:24 CEST 2014


Hi,

I don't know if there is "a TYPO3 way" but did you try to 
utf8_(de|en)code the $text?

Mit freundlichen Grüßen,
-- 
Andreas Fernandez

Am 26.08.2014 16:18, schrieb Satish Maurya:
> Hello,
>
> I am trying to import bulk data from external database to TYPO3 6.1
> database using below script.
> //------------------
> <?php
> define('TYPO3_PROCEED_IF_NO_USER', 1);
> require 'init.php';
>
> $text = 'Prozess- übersicht';
>   $data['pages']['NEW9823be87'] = array(
>   'title' => $text,
> 'subtitle' => 'Other title stuff',
>   'hidden' => '0',
> 'pid' => '-20'
> );
>
> $tce =
> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
> $tce->stripslashes_values = 0;
> $tce->start($data, array());
> $tce->process_datamap();
> ?>
> ​//-------------------------​
>
> ​It gets added but page title gets converted in question mark in place of
> German text.
> Text converts to " Prozess- ?bersicht"
>
> Could you please suggest any solution on this.
>
> Thanks​
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list