By: Andries
Date: 2013-04-24
Time: 09:20
|
charset OpenTBS
Hi,
I have a problem with switching charsets and especially with exended ascii characters (such as an euro sign). I can't get the eurosign to show up in my odt.
The data that I try to merge is in format UTF-8. This is what I tried so far:
1) $tbs->LoadTemplate($template, 'UTF-8'); ==> I think this doesn't do anything, can this be a bug?
2) $tbs->SetOption('charset', 'UTF-8') ==> same result
3)
iconv("UTF-8", "CP1252", $value) ==> works for the normal ascii characters, but not the extended
I also tried the known workaround: str_replace(chr(0xC2).chr(0x80), chr(0xE2).chr(0x82).chr(0xAC), $value), but normally iconv also translates extended ascii characters.
The eurosign never pops up. What am I doing wrong :)?
Thanks,
Andries
|