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

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Wed Aug 25 08:54:21 CEST 2004


Stanislas Rolland wrote:
> Hi Masi,
> 
> Could it be that a similar problem could happen with config.metaCharset
>  = windows-1250 ?

Could be, but I haven't tried it.

> Do you have replacement code for function getUpdateJS that we could
>  test ?

No, but it should work along these lines:

if (window.encodeURIComponent) {
   esc = encodeURIComponent(raw);
   // replace this chars manually if appropriate: , - _ . ! ~ * ' ( ) #
}
else {
   esc = escape(raw);
}

I would escape "#" and perhaps "," and "!" .

Masi





More information about the TYPO3-dev mailing list