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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Feb 21 11:25:32 CET 2007


Dmitry Dulepov schrieb:
> 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...

I have to look this up.

The problem is that if we send UTF8 and then use decodeURI(/-component) we 
might break old installations.

>> 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.

I think it's somewhere in the RFCs for URIs and URLs. Only in the old days 
nobody cared and sent latin1 in URLs - but that's so long ago maybe not 
everybody on this list will have seen that ;-)

>> PS: I think that decodeURIcomponent is what should be used.
> 
> Is this available on older browsers?

Yes. I think that all browsers that support

Masi



More information about the TYPO3-team-core mailing list