[PHP] UTF-8 and HTTP headers
Hello, I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? Jiri Nemec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] UTF-8 and HTTP headers
On Thursday 15 January 2004 19:52, Ji Nmec wrote: I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? If I understand your problem correctly, the solution is to arrange your code so that all the headers are sent before any other output. If I don't understand your problem, then please re-phrase your question and include actual code and error messages as necessary. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Life is like a tin of sardines. We're, all of us, looking for the key. -- Beyond the Fringe */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] UTF-8 and HTTP headers
Hello Jiri, I'm not sure I understand your problem (I had some trouble with your English), but have you tried PHP's utf8_encode() and utf8_decode() functions? Check out the PHP manual in your native language for more information on these functions. Cheers, Erik On 15 Jan 2004 at 12:52, Ji ¡ N mec wrote: Hello, I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? Jiri Nemec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] UTF-8 and HTTP headers
--- Jiøí Nìmec [EMAIL PROTECTED] wrote: I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? I don't understand your question, but maybe this will help. HTTP is encoded with ISO-8859-1, and this is not something you can change. The content can be encoded however you want. You will have to explain what exactly is preventing you from sending HTTP headers. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php