[Typo3-dev] problem with JS escape() and UTF-8 (on IE)

Stanislas Rolland stanislas.rolland at fructifor.com
Sat Aug 28 02:39:30 CEST 2004


Following your article, I further modified the getUpdateJS script  which now looks like this:

						if( $this->typoVersion >= 3006000 ) { 
							$convValue = $this->csLib->conv($Nvalue,$this->charset,'utf-8');
						} else {
							$convValue = $Nvalue;
						}
						$JSPart.="
	if (window.decodeURIComponent) { unesc = decodeURIComponent('".rawurlencode($convValue)."') } else { unesc = unescape('".rawurlencode($Nvalue)."') };
	updateForm('".$formName."','".$arrPrefix."[".$fKey."]',unesc);";

Initial testing indicates that it works fine with charset windows-1250 using Mozilla 1.5 or IE6.

Thanks,

Stanislas				





More information about the TYPO3-dev mailing list