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 #177785 is a reply to message #177783] Fri, 20 April 2012 22:45 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/20/2012 6:11 PM, 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.
>

Correct. Without the BOM, UTF-8 is the same as ASCII. Just the
extended characters (> 127) can have different meanings - but then ASCII
doesn't define meanings for those, anyway.

> 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.
>

It's all in how you want to define the extended characters.

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


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 Nov 24 11:18:28 GMT 2024

Total time taken to generate the page: 0.03830 seconds