[TYPO3-core] RFC: #11458: Russian chars in the comments are encoded wrong when changing the stage of an element

Xavier Perseguers typo3 at perseguers.ch
Wed Jul 15 19:08:34 CEST 2009


Hi,

> now i remember why i hate this stuff.
> 
> My entry string is:
> Московский автобус
> 
> escape/unescape only work on latin installations, fail with utf-8
> (this is used and work on latin, but fail on utf-8)
> 
> encodeURI/decodeURI converts it to utf-8
> (this works on utf-8, but fail on latin)
> 
> So if i'm on a latin system as i tried, and i use encodeURI results in 
> following string:
> Московский автобус
> 
> as it was encoded by javascript, used in URI it has to beconverted in 
> php to local charset. I tried so much combinations (native php, 
> t3lib_cs) but all fail, i never get back my entry string.
> 
> I'm far from any solution (or recommend only useing utf-8)
> 
> a bit clueless ...

I would suggest having both methods and using the good one according to 
the character set used by the installation. But this leads to another 
question... what about non-latin1 install which are not using utf8 either?

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-team-core mailing list