[TYPO3-50-general] corrupted chars in DebugExceptionHandler

Steffen Kamper info at sk-typo3.de
Mon Oct 12 10:10:29 CEST 2009


Hi Robert,

Robert Lemke schrieb:
> Hi Steffen,
> 
> Am 11.10.2009 um 15:47 schrieb Steffen Kamper:
> 
>> as we use a backported error- and exceptionhandler in v4, i stumbled
>> about corrupted chars in DebugExceptionHandler::getBacktraceCode
>>
>> $preparedArgument = (strlen($argument) < 80) ? $argument :
>> substr($argument, 0, 40) . '…' . substr($argument, -40);
>> $preparedArgument = htmlspecialchars($preparedArgument);
>> $preparedArgument = str_replace("\n", '<span
>> style="color:white;">�</span>', $preparedArgument);
>> $arguments .= '"<span style="color:#FF8700;">' . $preparedArgument .
>> '</span>"';
>>
>> It's corrupted in FLOW3 as well.
> 
> It's not broken in FLOW3 because all FLOW3 code is utf-8 encoded, all 
> output is utf-8 as well so using utf-8 characters is perfectly okay.
> 

then i have a problem, when i check out this file with svn - it doesn't 
contain the right chars, though i see the right chars here:
http://forge.typo3.org/repositories/entry/package-flow3/trunk/Classes/Error/DebugExceptionHandler.php

vg Steffen


More information about the TYPO3-project-5_0-general mailing list