Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

HTML Sandbox 2015
Free Republic | 2 Januray 2105 | Self+other FReepers

Posted on 01/02/2015 5:48:29 AM PST by ShadowAce

click here to read article


Navigation: use the links below to view more comments.
first previous 1-20 ... 101-120121-140141-160 ... 261-270 next last

Second

“This is a test” It isn’t working.

“This is a test” It isn’t working.


121 posted on 11/05/2015 1:24:41 PM PST by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 116 | View Replies]

To: thackney

“This is a test” It isn’t working.


122 posted on 11/05/2015 1:25:09 PM PST by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 116 | View Replies]

straight single: ‘
straight double: “


123 posted on 11/06/2015 7:19:12 AM PST by Ray76
[ Post Reply | Private Reply | To 122 | View Replies]

To: Ray76

Copying from post 123, let’s see what is displayed

straight single: ‘
straight double: “


124 posted on 11/06/2015 7:21:32 AM PST by Ray76
[ Post Reply | Private Reply | To 123 | View Replies]

To: Ray76

Straight quotes were converted to curly either during posting or upon retrieval from database for display.

Posting of curly quotes is not handled.


125 posted on 11/06/2015 7:26:04 AM PST by Ray76
[ Post Reply | Private Reply | To 124 | View Replies]

"So I take it we are testing this quote malfeasance"

What happens if we use the HTML ASCII codes for quotes?
 
(Ampersand+pound sign+34+semi-colon)= "
(Ampersand+pound sign+39+semi-colon)= '
"double quote"
'single quote'

126 posted on 11/07/2015 2:33:27 PM PST by GreenAccord (Bacon Akbar)
[ Post Reply | Private Reply | To 125 | View Replies]

To: GreenAccord

“So I take it we are testing this quote malfeasance”
What happens if we use the HTML ASCII codes for quotes?

(Ampersand+pound sign+34+semi-colon)= “
(Ampersand+pound sign+39+semi-colon)= ‘
“double quote”
‘single quote’


127 posted on 11/07/2015 2:35:47 PM PST by GreenAccord (Bacon Akbar)
[ Post Reply | Private Reply | To 126 | View Replies]

I might as well do a test also.👍💲⚓


128 posted on 11/07/2015 2:42:57 PM PST by Lurkina.n.Learnin (It's a shame enobama truly doesn't care about any of this. Our country, our future, he doesn't care)
[ Post Reply | Private Reply | To 127 | View Replies]

To: Lurkina.n.Learnin

Didn’t work.


129 posted on 11/07/2015 2:43:48 PM PST by Lurkina.n.Learnin (It's a shame enobama truly doesn't care about any of this. Our country, our future, he doesn't care)
[ Post Reply | Private Reply | To 128 | View Replies]

To: Lurkina.n.Learnin

Worked for me but why go thru that hassle when you can simply type in the ‘ “ ?

It’s when you do a copy/paste that the problem occurs. In a copy paste you can delete
the copied ‘ “ and then retype it in and all should be okay. The problem is it takes
some effort to go thru a copied article and do that.


130 posted on 11/07/2015 2:54:49 PM PST by deport
[ Post Reply | Private Reply | To 129 | View Replies]

To: thackney

“This is a test” It isn’t working.


131 posted on 11/09/2015 2:45:15 PM PST by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 116 | View Replies]

To: thackney

It IS working.

Replace smart quotes with regular straight quotes
http://dan.hersam.com/tools/smart-quotes.html


132 posted on 11/09/2015 2:45:52 PM PST by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 131 | View Replies]

To: thackney

hey’ve shooed pipeline surveyors from their pastures, made anti-pipeline signs for a protest at the county courthouse and at appearances by the Virginia governor. They’ve also kept up pressure on local officials.

As the leader in this multigenerational band of family activists, Carolyn Reilly has found the experience exhilarating and bruising.

“There are days when I am in tears in frustration and exhaustion,” she said. “Then there are days when I’m fired up and ready to fight.”

From New England to North Carolina, scattered insurgencies have formed in opposition to a spider web of pipelines up and down the Eastern Seaboard as the nation’s energy industry seeks to move pent-up natural gas supplies.

Behind the pipeline boom: vast deposits of natural gas being drilled in West Virginia, Pennsylvania and Ohio and ready for shipment to U.S. and international markets.

“Essentially, the takeaway is they’re re-plumbing the whole United States,” said Timothy R. Carr, a West Virginia University geologist.


133 posted on 11/09/2015 2:47:06 PM PST by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 132 | View Replies]

To: ShadowAce

“Double-smart-quoted string”
‘Single-smart-quoted string’
An em—dash
Some Cyrillic: Влади́мир Влади́мирович Пу́тин


134 posted on 11/12/2015 9:27:08 PM PST by cynwoody
[ Post Reply | Private Reply | To 1 | View Replies]

To: cynwoody

Copy, paste, and repost:

“Double-smart-quoted string”
‘Single-smart-quoted string’
An em—dash
Some Cyrillic: Влади́мир Влади́мирович Пу́тин


135 posted on 11/12/2015 9:28:24 PM PST by cynwoody
[ Post Reply | Private Reply | To 134 | View Replies]

To: Lurkina.n.Learnin; John Robinson
👍💲⚓

HTML code for the above:

<big><big><big><big>&#128077;&#128178;&#9875;</big></big></big></big>

The first two characters (the thumbs up and the heavy dollar sign) are sufficiently obscure that they don't fit into JavaScript's 16-bit character set. They require JavaScript to resort to surrogate pairs (two JavaScript characters for one dsplayed character) to represent them. That defeats the direct indexability of JavaScript strings (which were standardized prematurely). See here for details.


The current FR site problem appears to be due to a recently introduced bug which causes the server to break up the individual bytes of posted UTF-8 sequences into their own separate HTML entities, resulting in the garbage we are now seeing. No longer can you simply copy a string represented as UTF-8 and paste it into a post and have it come back unscathed. Instead, you have to post entities representing any characters outside the 7-bit ASCII range (way more work than anyone is going to bother with).

E.g., your three characters require 11 bytes in UTF-8 (four each for the thumbs up and the heavy dollar sign, and three for the anchor). If I copy your characters to the Mac pasteboard and paste them through a hex dumper, I get:

$ pbpaste|xxd
0000000: f09f 918d f09f 92b2 e29a 93              ...........

After the server mangles it, that comes back as 👍💲⚓., or, in HTML:

&eth;&#159;&#145;&#141;&eth;&#159;&#146;&sup2;&acirc;&#154;&#147;

See here to decode that 💩. What has happened is that each byte of the perfectly valid UTF-8 encoding has been replaced with a corresponding HTML entity from the ISO 8859-1 (Latin-1) set, resulting in crud. E.g., the f0 bytes have been replaced with the Icelandic eth character, and the 9f with the reserved &#159;, a Latin Y with a diaeresis.

It takes real work to produce that unfortunate transformation. Far better just to let the browser sort out the UTF-8.


UTF-8 Rules!

136 posted on 11/15/2015 12:50:17 PM PST by cynwoody
[ Post Reply | Private Reply | To 128 | View Replies]

To: Ray76
Posting of curly quotes is not handled.

An interesting fact is that, if you post straight quotes (7-bit ASCII) in a non-HTML post, the server converts them to curly quotes (unicode, requiring three bytes of UTF-8 each). Your post displays OK, and you probably don't even notice unless your font is large or your eyes good.

But, then, if somebody quotes your post in a reply, your curlies are replaced with garbage, due to the current bug (unless your respondent edits them to straight quotes or replaces them with appropriate HTML entities (not going to happen)).

137 posted on 11/15/2015 1:09:23 PM PST by cynwoody
[ Post Reply | Private Reply | To 125 | View Replies]

To: ShadowAce
Practicing .gif post
138 posted on 12/16/2015 1:12:05 PM PST by mund1011
[ Post Reply | Private Reply | To 1 | View Replies]

To: mund1011

139 posted on 12/16/2015 1:21:01 PM PST by mund1011
[ Post Reply | Private Reply | To 138 | View Replies]

To: mund1011

bttt


140 posted on 12/16/2015 1:28:32 PM PST by timestax (American Media = Domestic Enemy)
[ Post Reply | Private Reply | To 139 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 101-120121-140141-160 ... 261-270 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson