Categories > TinyButStrong general >

iso-8859-2 charset problem

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: halinux
Date: 2004-07-02
Time: 12:47

iso-8859-2 charset problem

Hi

When I use LoadTemplate, I can not use iso-8859-2 charset, because htmlentities() not support it, and replace it to iso-8859-1. It's ok.

Like this:
$tbs->LoadTemplate(xsajtfigydir."user/sajtofigyelo.html", "iso-8859-2");

There is two hungarian character o" and u" , and these characters are replaced by tinybutstrong to õ and to ucirc;
But it's wrong!
If tinybutstrong didn't hurt o" and o" chars, than browsers would display these chars correctly because of the iso-8859-2 charset definition in the <meta> tag.

What do you suggest, how can I get around the problem?
Do you have any good option or idea?

Thanks,
Halinux
By: Skrol29
Date: 2004-07-02
Time: 18:02

Re: iso-8859-2 charset problem

Hi,

iso-8859-2 with PHP seems to be a problem.

It noticed in the PHP bug list, with some workaround:
  http://bugs.php.net/bug.php?id=7923

I've also found a hungarian thread about it:
http://www.hup.hu/modules.php?name=Forums&file=viewtopic&p=10156

Did you tried another charset? "cp1251" for example?