Re: PHP Always Outputs [message #178683 is a reply to message #178677] |
Tue, 17 July 2012 08:49 |
Tim Streater
Messages: 328 Registered: September 2010
Karma:
|
Senior Member |
|
|
In article <ju34au$aem$1(at)dont-email(dot)me>,
"Álvaro G. Vicario" <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:
> El 16/07/2012 20:18, Tim Streater escribió/wrote:
>>> header('Content-Type: text/plain');
>>
>> header ('Content-Type: text/plain; charset=utf-8');
>>
>> is better.
>
> To display an empty file?
I can do *that* by opening a new document in TextWrangler. But if I want
to do something useful using SQLite, PHP, ajax, JavaScript, CSS, and
HTML, I eventually figured out that using utf-8 throughout made my life
a lot easier. Especially as I can convert any junk I receive *into*
utf-8, using PHP tools.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
|
|
|