On Sep 15, 2004, at 2:11 AM, Patrick Gundlach wrote:
to add my own markup and callback function. The string that I get in
this function seems to be utf8. Is there any way to get the string
encoded in latin-1? (Wherever this is possible) Or is this more a php
question or ...?
You can use $wgLang->iconv(), which is a wrapper around iconv (if
available) or utf8_decode/utf8_encode as a hacky fallback if iconv is
not available. $wgInputEncoding store the encoding internally used.
Since UTF-8 to Latin-1 conversion is lossy, you should only do this if
it's really necessary and you are unable to process Unicode text.
-- brion vibber (brion @ pobox.com