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 #177784 is a reply to message #177783] Fri, 20 April 2012 22:23 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Tim Streater wrote:
> 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.

wiki has this to say:

The Unicode Standard does permit the BOM in UTF-8,[2] but does not
require or recommend its use.[3] Byte order has no meaning in UTF-8[4]
so in UTF-8 the BOM serves only to identify a text stream or file as UTF-8.

>
> 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.
>
Never found a reliable way to do that..



--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
[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: Sun Dec 01 00:21:29 GMT 2024

Total time taken to generate the page: 0.05235 seconds