[TYPO3-core] RFC #15092: Bug: Ajax loaded items of inline records are encoded twice

Steffen Kamper info at sk-typo3.de
Wed Aug 11 16:10:58 CEST 2010


Hi,

conversion is done in Ajax class:

	// get charset from current AJAX request (which is expected to be utf-8)
		preg_match('/;\s*charset\s*=\s*([a-zA-Z0-9_-]*)/i', 
$_SERVER['CONTENT_TYPE'], $contenttype);
		$charset = $GLOBALS['LANG']->csConvObj->parse_charset($contenttype[1]);
		if ($charset && $charset != $this->requestCharset) {
			$this->requestCharset = $charset;
		}

				// if the AJAX request does not have the same encoding like the backend
				// we need to convert the POST and GET parameters in the right charset
		if ($this->charset != $this->requestCharset) {
			$GLOBALS['LANG']->csConvObj->convArray($_POST, $this->requestCharset, 
$this->charset);
			$GLOBALS['LANG']->csConvObj->convArray($_GET,  $this->requestCharset, 
$this->charset);
		}

So there is no need for extra conversion here.

See attached patch where the conversion in irre was removed.

vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15092_v2.diff
Type: text/x-patch
Size: 829 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100811/69392974/attachment.bin>


More information about the TYPO3-team-core mailing list