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

Skip to comments.

Strange characters showing up in FR posts -- here's a workaround
11/11/15

Posted on 11/11/2015 6:35:44 PM PST by markomalley

I don't know if this has impacted anybody else, but in recent weeks, I've noticed that HTML special characters are not rendering properly in HTML posts.

For example, the character “ is rendering as “, the character ” is rendering as ”, and so on.

A screenshot of a typical thread is here:

Needless to say, that is really irritating.


There is a workaround for this: replace these special characters with their corresponding HTML codes.

The ones that FR is currently having problems with are as follows:

"left single quote" ‘
"right single quote" ’
"left double quote" “
"right double quote" ”
"em-dash" —
"en-dash" –
"ellipsis" …

You can do a global search and replace with pretty much any decent text editor out there.

However, in my experience, I've seen that it takes a few passes to catch all of the special characters in a document. You may need to do up to 7 passes in order to catch all of the characters.

This makes for a decent looking post, but it is a lot of repetition.

And I'm lazy.


Since I'm lazy, I did a little bit of research in order to figure out a "constructive" way to be lazy in this situation. I was looking for a text editor, similar to Notepad++, that supports macros (since I'm on Linux, I can't use Notepad++, except under Wine).

In doing my research, I think that I've found the solution that does EXACTLY what we need: Geany. Geany is a simple IDE environment that is supported under Linux, Windows, and Mac OSX. There is a plugin written for this editor / IDE that will automatically replace HTML special characters like the ones above with the applicable HTML code, thus eliminating our problems in one fell swoop!


In order to use this capability, the first step is to download and install the software (open source). Be sure to install both the software and the plugins.

The user interface:

First, you need to enable the appropriate plugin. Open up the plugin manager window by selecting "Tools" -- "Plugin Manager":

Then select the "HTML Characters" plugin:


To use this editor / IDE, you will want to paste in the text you wish to be "fixed".

Select all of the text that you've pasted into the environment ([ctrl]-A).

Then click on "Tools" -- "HTML Replacement" -- "Replace Characters in Selection"

And, Voila, all the problematic special characters in the text have been replaced with the corresponding HTML code.

(Note that if you were using plain text, you will now need to put a paragraph tag "<p>" at the beginning of each paragraph for it to format properly)


TOPICS: Chit/Chat; Computers/Internet
KEYWORDS: faq; freerepublic; geany; html; internet; posting; quotes; workaround
Navigation: use the links below to view more comments.
first 1-2021-4041-51 next last
Hopefully this little tutorial will help some out.
1 posted on 11/11/2015 6:35:44 PM PST by markomalley
[ Post Reply | Private Reply | View Replies]

To: markomalley

Strange characters showing up in FR posts — here’s a workaround
______

Strange characters showing up in FR posts for a long time, ever since I have been here.— I can name a few of the odder ones.


2 posted on 11/11/2015 6:39:07 PM PST by Chickensoup (We lose our freedoms one surrender at a time)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Chickensoup

Thanks for your help... But wouldn’t it be easier to just fix it once at the source?


3 posted on 11/11/2015 6:40:01 PM PST by JustTheTruth
[ Post Reply | Private Reply | To 2 | View Replies]

To: Chickensoup
Strange characters showing up in FR posts for a long time, ever since I have been here.— I can name a few of the odder ones.

I guess I asked for that one…

4 posted on 11/11/2015 6:40:16 PM PST by markomalley (Nothing emboldens the wicked so greatly as the lack of courage on the part of the good -- Leo XIII)
[ Post Reply | Private Reply | To 2 | View Replies]

To: markomalley

I h“ve no idea what you’re talking about.


5 posted on 11/11/2015 6:41:21 PM PST by Jeff Chandler (Evil, in this world, comes from sin. Not from income disparity or 'climate change.' - Dr.Cernea)
[ Post Reply | Private Reply | To 1 | View Replies]

To: JustTheTruth
But wouldn’t it be easier to just fix it once at the source?

I can't control what happens at the "source" (server side).

6 posted on 11/11/2015 6:42:00 PM PST by markomalley (Nothing emboldens the wicked so greatly as the lack of courage on the part of the good -- Leo XIII)
[ Post Reply | Private Reply | To 3 | View Replies]

To: markomalley

ping


7 posted on 11/11/2015 6:44:19 PM PST by knarf (I say things that are true .... I have no proof ... but they're true.)
[ Post Reply | Private Reply | To 6 | View Replies]

To: markomalley

I was asking about the problem yesterday and Jim said John is on it. It started after we got that malware warning here, and it may or may not be related to that.


8 posted on 11/11/2015 6:44:35 PM PST by Yaelle
[ Post Reply | Private Reply | To 1 | View Replies]

To: JustTheTruth

What a novel idea.


9 posted on 11/11/2015 6:45:23 PM PST by rockrr (Everything is different now...)
[ Post Reply | Private Reply | To 3 | View Replies]

To: knarf

I’m a strange character. Is that what the poster meant?


10 posted on 11/11/2015 6:45:47 PM PST by Lazamataz ( If they try firearm confiscation or gun registration, I go ballistic.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: markomalley

When & why did it start? I was in the hospital and when I returned it was already going on.


11 posted on 11/11/2015 6:46:07 PM PST by 2ndDivisionVet (TED CRUZ. You can help: https://donate.tedcruz.org/c/FBTX0095/)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Chickensoup

lol! Same thing I was thinking.


12 posted on 11/11/2015 6:46:36 PM PST by South40 (Trump on Kim Davis: I hate to see her being sent to jail but the law is the law)
[ Post Reply | Private Reply | To 2 | View Replies]

To: 2ndDivisionVet
When & why did it start? I was in the hospital and when I returned it was already going on.

The forum missed you is why.

13 posted on 11/11/2015 6:46:58 PM PST by Lazamataz ( If they try firearm confiscation or gun registration, I go ballistic.)
[ Post Reply | Private Reply | To 11 | View Replies]

To: markomalley

Mark — thanks. I have noticed these special characters showing up over the last week or so.

So are you suggesting each user perform this operation on each post they read .. or each block of text they post .. or what? I am confused as to what you are suggesting.


14 posted on 11/11/2015 6:47:24 PM PST by plain talk
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley
Also &apos; for ' (apostrophe)
15 posted on 11/11/2015 6:50:13 PM PST by NonValueAdded (In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Chickensoup

Lots of strange characters posting on FR. Any work around for that?


16 posted on 11/11/2015 6:51:40 PM PST by The_Media_never_lie (The Bush family needs to just go away. The Clinton family needs just to go to prison.)
[ Post Reply | Private Reply | To 2 | View Replies]

To: plain talk

Good question.


17 posted on 11/11/2015 6:52:42 PM PST by laplata ( Liberals/Progressives have diseased minds.)
[ Post Reply | Private Reply | To 14 | View Replies]

To: plain talk
So are you suggesting each user perform this operation on each post they read .. or each block of text they post .. or what? I am confused as to what you are suggesting.

First of all, I'm not mandating that anybody does anything. For myself, I like for articles I post to be as legible as possible. I enjoy reading articles that are legible as well. So if I can take a couple of steps to make sure that the articles are more legible, then so much the better. But I'm not trying to impose something on anybody.

Having said that…

I'm thinking it would be appropriate for articles...at least...so that they'd be legible.

For comments, I don't think it's as necessary.

Hopefully John will be able to fix the problem at the server side so that this isn't an issue, but in the interim, this would work. Using the Geany application to convert those special characters only takes a few seconds once you've installed it, so it's not too much of a hassle.

18 posted on 11/11/2015 6:52:47 PM PST by markomalley (Nothing emboldens the wicked so greatly as the lack of courage on the part of the good -- Leo XIII)
[ Post Reply | Private Reply | To 14 | View Replies]

To: 2ndDivisionVet

When & why did it start? I was in the hospital and when I returned it was already going on.

_________________________________

Hope you are well!


19 posted on 11/11/2015 6:53:52 PM PST by Chickensoup (We lose our freedoms one surrender at a time)
[ Post Reply | Private Reply | To 11 | View Replies]

To: markomalley

Ain’t nobody got time for dat.


20 posted on 11/11/2015 6:54:05 PM PST by Kirkwood (Zombie Hunter)
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-51 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