[Pro] Escaping ‘ and ’

How do you escape ‘ and ’ in php?

These two " and " have to be included in a php text include


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry. That should be these entities

‘  and  ’

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Your PHP should just print that text (the entity code) rather than
anything else.

However, if you have gone through all the hoops necessary to make your
PHP respect UTF-8 text, then you can simply type the high-bit
character (Option-right square bracket or Option-Shift-right square
bracket) directly into your PHP code. Make sure your text editor is
set to output UTF-8 and your code will “just work”.

Walter

On Sep 13, 2010, at 7:54 AM, David Owen wrote:

Sorry. That should be these entities

‘  and  ’

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter

this is for a closing double punctuation marks (like 99)

Option-Shift-right square bracket create a (like 9) but used twice worked :slight_smile:

although on Mac ’’ does not display the same spacing as ’ does

‘  and  ’

If that still OK?

David

On 13 Sep 2010, at 13:06, Walter Lee Davis wrote:

Your PHP should just print that text (the entity code) rather than anything else.

However, if you have gone through all the hoops necessary to make your PHP respect UTF-8 text, then you can simply type the high-bit character (Option-right square bracket or Option-Shift-right square bracket) directly into your PHP code. Make sure your text editor is set to output UTF-8 and your code will “just work”.

Walter

On Sep 13, 2010, at 7:54 AM, David Owen wrote:

Sorry. That should be these entities

‘  and  ’

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The opening double quote is coded as “ and the closing double
quote is coded as ”. On the Mac keyboard, that is usually
Option + left square bracket and Shift + Option + left square bracket.

You were asking about the l & r squo, so that’s what I gave you on the
keyboard. The reason they give different spacing when used twice in a
row rather than their double quote mark brethren is because the single-
quote (or apostrophe, when it’s the right version like a 9) needs to
provide some shoulder room between the two characters it is separating
in the case of an apostrophe, otherwise you couldn’t read it clearly.
This shoulder room doesn’t care WHAT character is left or right of it
(except in exotic OpenType fonts, and then, only in a setting where
typographical rules would be enforced – therefore never in a Web
browser) so when you use two single-quotes in a row, it appears
completely different than a single double-quote mark.

Walter

On Sep 13, 2010, at 9:35 AM, David Owen wrote:

Walter

this is for a closing double punctuation marks (like 99)

Option-Shift-right square bracket create a (like 9) but used twice
worked :slight_smile:

although on Mac ’’ does not display the same spacing as ’
does

‘  and  ’

If that still OK?

David

On 13 Sep 2010, at 13:06, Walter Lee Davis wrote:

Your PHP should just print that text (the entity code) rather than
anything else.

However, if you have gone through all the hoops necessary to make
your PHP respect UTF-8 text, then you can simply type the high-bit
character (Option-right square bracket or Option-Shift-right square
bracket) directly into your PHP code. Make sure your text editor is
set to output UTF-8 and your code will “just work”.

Walter

On Sep 13, 2010, at 7:54 AM, David Owen wrote:

Sorry. That should be these entities

‘  and  ’

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options