rm ([personal profile] rm) wrote2009-03-31 12:21 pm

HTML question

- Freaky control characters showing up in Firefox on Macs.
- They show up on nothing else -- not in Safari, not on PCs.

What the hell should I be looking for that will make this stop?

[identity profile] rm.livejournal.com 2009-03-31 04:31 pm (UTC)(link)
Dumb, dumb HTML question:

do I write out "ampersand-quot-semicolon" or do I write out &";

am unclear.
Edited 2009-03-31 16:33 (UTC)

[identity profile] browneyedgirl65.livejournal.com 2009-03-31 04:34 pm (UTC)(link)
Sorry, you would use the single character ampersand where I say ampersand. I can't tell if LJ is going to render it or not, sometimes.

Use this:

& to print out an ampersand character

" to print out a properly escaped quotation character

These are called html entities, and there's a list of them here: http://htmlhelp.com/reference/html40/entities/ plus other places if you google

[identity profile] rm.livejournal.com 2009-03-31 04:35 pm (UTC)(link)
Thank you thank you thank you!

I feel embarrassed that I've never needed to know this before.

[identity profile] filkerdave.livejournal.com 2009-03-31 04:37 pm (UTC)(link)
Yes, and they're also the safest way to do accented character if you do the occasional entries (as I do) in German or French.

[identity profile] stardragonca.livejournal.com 2009-03-31 08:01 pm (UTC)(link)
Hey! Something I can understand and use.
(Normal procedure:search for non-English word phrase or character online, then cut and paste. Clumsy, but me.)
Techno-peasantly yours.

[identity profile] filkerdave.livejournal.com 2009-03-31 08:24 pm (UTC)(link)
It works, certainly.

For email, I'm familiar enough with the alt-keypad method and I know most of the characters I need by heart :)

further confusion

[identity profile] jinian.livejournal.com 2009-03-31 04:36 pm (UTC)(link)
Neither: it should look like " (once my HTML is processed).

" (if you are seeing this in plain text) is what to type.

[identity profile] misch.livejournal.com 2009-03-31 04:54 pm (UTC)(link)
There's always problems doing copy-pasta from word processors. Most notably, when Word or Open Office do double quote substitution.

Word:
Tools | Autocorrect Options | Auto-format as you type (tab)
Uncheck: Replace as you type "Straight quotes" with "smart quotes"

[identity profile] browneyedgirl65.livejournal.com 2009-03-31 05:13 pm (UTC)(link)
And that is the reason Word is the bane of my existence :-P. Thanks for that tip, I'll have to remember it...

[identity profile] browneyedgirl65.livejournal.com 2009-03-31 08:25 pm (UTC)(link)
Yup, found my way there shortly thereafter. Cute :-)