[TYPO3-core] RFC: garbage characters are shown if form validation fails

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Wed Feb 21 11:19:42 CET 2007


Martin Kutschker wrote:
> The solution uses decodeURI which is a) not available on older browser 
> and b) relies on UTF8 input data (as URLs must be UTF8 encoded).

I think if "older browsers" is MSIE5, we can drop it...

> So if we don't care about older browsers we can ensure that the data 
> passed from PHP to JS in such a way is ecnoded in UTF8.

Normally, it should. I do not remember where I read it but I am sure 
that non-latin1 symbols should be in unicode when used in URL.

> PS: I think that decodeURIcomponent is what should be used.

Is this available on older browsers?

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-team-core mailing list