[TYPO3] sp_directory and utf-8 doesn't work correctly
Julo Ferianc
jferianc at centrum.cz
Sun Dec 10 01:22:14 CET 2006
Hi Tomas,
as your original post is almost 10 months old, this would probably be
too late an answer for you. Nevertheless as I faced the same problem and
eventually found the solution, I'm posting it here for other users
reference.
The problem of sp_directory and accented characters lies within usage of
htmlentities() function in
ext\sp_directory\pi1\class.tx_spdirectory_pi1.php file. Try to remove
the function from rendering portions of code and voila: all chars in all
encodings are shown correctly. This solution (removing htmlentities) has
some other implications though, consider before applying.
Note, sp_directory has been dropped from TER allegedly for some obscure
security reason, the future of this enormously useful extension is unclear.
Julo
On 22.3.2006 22:19, Tomas Broeker wrote:
> Hi,
>
> does anybody know why with sp_directory the addresses from tt_address
> are not display correctly? Special codes like "ä, ö, ü, etc." are
> display weirdly.
>
> Strange is that everything is displayed correctly in the Backend. There
> are no problems with special chars.
>
> When I look into the tt_address table the display of the characters is
> wrong. Do I change it manually (using phpmyadmin) the char is displayed
> correctly in the FE but wrong in the BE.
>
> Typo3 4.0rc1 and MySQL are both using utf-8.
> I am using tt_address 1.0.4 and sp_directory 0.2.10.
>
> Regards
> Thomas
More information about the TYPO3-english
mailing list