Bug #21490
closed
PHP-5.3: Invalid UTF-8 sequence in argument
Added by Dan Osipov almost 15 years ago.
Updated almost 6 years ago.
Description
[06-Nov-2009 20:10:24] http://phillyburbs/ - Core: Error handler (BE): PHP Warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in C:\wamp\www\pb_trunk\typo3\sysext\rtehtmlarea\class.tx_rtehtmlarea_base.php line 1224
I think this is comming from several language files that have non-UTF8 (certainly non-english) characters:
locallang.xml:
<label index="Technische Universitat Ilmenau">Technische Universität Ilmenau</label>
(issue imported from #M12501)
Files
which extension has this label?
Can you identify the offending file? I could not find any that is not utf-8-encoded.
Stan - attached patch fixes the problem for me.
@Dan: I do not understand this patch. The same label exists in other files (CopyPaste, DefinitionList).
Maybe they aren't loaded for me? Its definitely the a-umlaut that causes the issue on my installation though.
Some other files just use a latin "a" - can it be used throughout?
If you are referring to trunk and have copy, cut or paste button, then the CopyPaste file would be loaded.
The index uses latin a, the label ä. But the file being utf-8 encoded like all locallang.xml files, why should it matter?
I don't know - its beyond me... It would be nice if someone else could replicate the bug.
Is the backend of your installation utf-8 encoded?
I have:
$TYPO3_CONF_VARS['BE']['forceCharset'] = "utf-8";
Is there anything else that needs to be done?
Please test patch attached to issue #12926.
Stan, this is part of issue #12926.
Since you have solved that one, this one is solved, too.
@Christopher: This is the assumption. But I would like Dan to confirm that this issue is solved in his environment also.
The patch is now in SVN.
@Stanislas Rolland:
I am unable to replicate the bug with the latest trunk, so I believe the issue was fixed by the patch.
Thanks a lot!!
- Status changed from Resolved to Closed
Also available in: Atom
PDF