On 7/21/05 8:32 AM, "Regine Velasquez" <myprogram@xxxxxxxxx> wrote: > Whenever I switch the encoding of a page to > UTF-8, the characters ñ, ë, ì, û, á, etc., > automatically changes to question marks. I've > originally set the encoding of a page to ISO-8859-1 using header () function. > > header ('Content-Type: text/html; charset=ISO-8859-1'); > Well, if you've set the encoding to ISO-8859-1 and then output utf-8 characters I would expect them not to display properly. Or am I not understanding the problem correctly? From what I see, you can either change the encoding of the page, or use a function like utf8_decode() to transform utf-8 characters into iso-8859-1 (which, of course, is not always possible). Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php