FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » session question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session question [message #177783 is a reply to message #177778] Fri, 20 April 2012 22:11 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <jmsedj$44p$1(at)dont-email(dot)me>,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> On 4/20/2012 3:13 PM, Michael Fesser wrote:
>> .oO(Jerry Stuckle)
>>
>>> IOW, you screwed up and the others here were right.<?php was NOT the
>>> first thing in your file!
>>
>> But this issue is not the most obvious, so you can't blame it on him.
>> Some editors store a BOM without giving notice, others hide such
>> settings somewhere deep in the preferences.
>>
>> Hopefully this problem will completely vanish with native Unicode
>> support in PHP 6.

> That's why you should never use a UTF-8 editor. Of, if you need to,
> ensure that it's saving in ASCII mode.

Rubbish. All my files are saved in UTF-8, which is no BOM by default.
For the most part this means they are the same as ASCII files, but if I
want to add chars like ƒ (curlique-f or whatever it's called), I can do
that.

I got fed up when my email client (written in PHP and JavaScript) kept
displaying chinese as rubbish characters. A decision to use UTF-8
throughout, paying careful attention to the charsets that the received
data said it was using, converting to UTF-8 where appropriate in PHP,
sending the right headers, and doing the right thing on the JS side has
meant that displayed mails look correct.

Windows-generated mails have a habit of lying about the charset they are
using, but that's easy to fix up.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Date/Time warning
Next Topic: How to create an instance from a class name
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 20:51:27 GMT 2024

Total time taken to generate the page: 0.04338 seconds