# Bizarre code in staff reports

**URL:** https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090
**Category:** Cecil's Columns/Staff Reports
**Created:** [April 7, 2007, 10:21am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090 "2007-04-07T10:21:06Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![kjkolb](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kjkolb](https://boards.straightdope.com/u/kjkolb)
#### Post date: [April 7, 2007, 10:21am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/1 "2007-04-07T10:21:06Z")

</div>

In [this](http://www.straightdope.com/mailbag/mrewards.htm) staff report, dashes (–) are rendered as question marks by Firefox (Macintosh version 2.0.0.3). Looking at the page source, I found that throughout the article the font is reidentified as Times New Roman over and over, including whenever “–” is used. It looks like this in the source when a dash is used: \<font face=“Times New Roman”\>�\</font\>. In one case, a word gets trapped inside there, leading to it being displayed improperly in my Safari browser (the word is “they’re” as in “they’re contracts”). I suppose that it would cause problems in Firefox, too, but I have Firefox set to use my default font, no matter what the page tries to do. Strangely, Safari displays the dashes correctly, but they do not appear in the page source when it is viewed with Safari.

I am pretty sure that I have seen the same thing in other staff reports, but I am not positive. The dashes show up properly in [this](http://www.straightdope.com/mailbag/mfreereligion.htm) article and its source, but the font tags are still present. One thing that I found was [this](http://www.straightdope.com/mailbag/mcommandeer.html) article, which has some code randomly appear in it a bunch of times for no reason. The code is “\<span lang=“en-us””, followed by a random letter, word or phrase, which is followed by “\</span\>”.

---

<div class="post-metadata">

### Author: ![Arnold\_Winkelried](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold\_Winkelried](https://boards.straightdope.com/u/Arnold_Winkelried)
#### Post date: [April 7, 2007, 11:28am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/2 "2007-04-07T11:28:35Z")

</div>

I don’t have a problem with those “funny” characters in Firefox 1.5.0.11 on Macintosh OS X 10.4.9, but on the pages you mention I see “box characters” (a diamond with a question mark) using Safari 2.0.4. In my experience, I see a problem with “em dashes” and “smart quotes”. I can’t tell from your description if that is what’s happening with you, kjolb.

---

<div class="post-metadata">

### Author: ![Arnold\_Winkelried](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold\_Winkelried](https://boards.straightdope.com/u/Arnold_Winkelried)
#### Post date: [April 7, 2007, 12:09pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/3 "2007-04-07T12:09:35Z")

</div>

I upgraded to Firefox 2.0.0.3 on the Macintosh and I still don’t see “question marks” in the places you say, kjolb.

---

<div class="post-metadata">

### Author: ![Gfactor](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gfactor](https://boards.straightdope.com/u/Gfactor)
#### Post date: [April 7, 2007, 3:56pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/4 "2007-04-07T15:56:33Z")

</div>

I’ve alerted the authorities, **kjkolb**. Thanks.

---

<div class="post-metadata">

### Author: ![TubaDiva](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tubadiva/32/507_2.png) [@TubaDiva](https://boards.straightdope.com/u/TubaDiva)
#### Post date: [April 7, 2007, 6:00pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/5 "2007-04-07T18:00:24Z")

</div>

We’re looking at our coding procedures to see if we can standardize so it looks the same way – properly! – for everyone.

I will tell you that this is a PC-based environment here and that Mac users should be accustomed to stuff not being perfect by now, that’s one of the problems with having a Mac. I also note that Mac users do seem to have more of a need to run the most recent versions of whatever software they have, including any fixes that may come out.

This is not meant to be a slam towards Macs or Mac owners and should not be taken personally or offensively. Just saying. I own some Mac equipment my own self and do prefer it for some things. …not Straight Dope content. 🙂

We are working on it.

---

<div class="post-metadata">

### Author: ![Arnold\_Winkelried](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold\_Winkelried](https://boards.straightdope.com/u/Arnold_Winkelried)
#### Post date: [April 7, 2007, 6:58pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/6 "2007-04-07T18:58:38Z")

</div>

[QUOTE=TubaDiva]  
Mac users should be accustomed to stuff not being perfect by now, that’s one of the problems with having a Mac.  
[/QUOTE]  
The problem is not with my Mac, it’s the rest of the world that is screwed up! My Macintosh is so friendly and eager to get along, like a cute puppy.

---

<div class="post-metadata">

### Author: ![picunurse](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@picunurse](https://boards.straightdope.com/u/picunurse)
#### Post date: [April 9, 2007, 6:53am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/7 "2007-04-09T06:53:09Z")

</div>

I saw the ? for dashes with Safari. I just changed Text Encoding from Default to Western (ISO Latin1), now it’s fixed.

---

<div class="post-metadata">

### Author: ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)
#### Post date: [April 15, 2007, 1:25am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/8 "2007-04-15T01:25:47Z")

</div>

> [@TubaDiva](#):
>
> I will tell you that this is a PC-based environment here and that Mac users should be accustomed to stuff not being perfect by now, that’s one of the problems with having a Mac.

Nonsense. Writing good, conforming HTML and setting content types correctly make things work portably, and if anyone has a problem with good pages you can ignore them. This whole Mac/PC crap is nonsense in this context.

---

<div class="post-metadata">

### Author: ![wolf\_meister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolf_meister/32/15202_2.png) [@wolf\_meister](https://boards.straightdope.com/u/wolf_meister)
#### Post date: [April 15, 2007, 4:18am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/9 "2007-04-15T04:18:01Z")

</div>

**TubaDiva**  
Although I don’t own one, I agree with your “_one of the problems with having a Mac_” comment and therefore disagree with **Derleth** ’s comment _"Writing good, conforming HTML and setting content types correctly make things work portably_"

I’ve received E-Mails (from Mac users) that my website calculators sometimes produce errors in _powers_ of ten.  
(e.g. 1 inch = 2540 centimeters)

Also, I’m sure we’ve all heard the stories about Windows Vista causing problems for users transferring songs to and from their I-Pods.

To me it seems, despite the supposed affiliation of Microsoft and Apple, Bill doesn’t go out of his way to ensure compatibility.

---

<div class="post-metadata">

### Author: ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)
#### Post date: [April 16, 2007, 2:19pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/10 "2007-04-16T14:19:26Z")

</div>

**wolf\_meister** : That’s Javascript. Javascript is known to be a portability nightmare. Straight HTML with minimal markup and not even any CSS to speak of is _absolutely_ portable if written intelligently.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [April 16, 2007, 3:43pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/11 "2007-04-16T15:43:38Z")

</div>

> [@](#):
>
> Straight HTML with minimal markup and not even any CSS to speak of is absolutely portable if written intelligently.

And Java, CSS and those other things are also portable, if you follow the standards instead of Microsoft.

---

<div class="post-metadata">

### Author: ![AHunter3](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ahunter3/32/368_2.png) [@AHunter3](https://boards.straightdope.com/u/AHunter3)
#### Post date: [April 16, 2007, 3:56pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/12 "2007-04-16T15:56:55Z")

</div>

I don’t suppose by any chance those staff reports were composed in Microsoft Word and then pasted into a web browser?

---

<div class="post-metadata">

### Author: ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)
#### Post date: [April 16, 2007, 4:13pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/13 "2007-04-16T16:13:59Z")

</div>

[QUOTE=Chronos]  
And Java, CSS and those other things are also portable, if you follow the standards instead of Microsoft.  
[/QUOTE]  
Java doesn’t have anything to do with the browser as long as the browser is capable of embedding applets at all. Javascript, on the other hand, is run by the browser and can change arbitrary elements of the page.

---

<div class="post-metadata">

### Author: ![TubaDiva](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tubadiva/32/507_2.png) [@TubaDiva](https://boards.straightdope.com/u/TubaDiva)
#### Post date: [April 17, 2007, 2:08pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/14 "2007-04-17T14:08:27Z")

</div>

[QUOTE=AHunter3]  
I don’t suppose by any chance those staff reports were composed in Microsoft Word and then pasted into a web browser?  
[/QUOTE]  
Worse. Word Perfect. But yes, that’s what goes on; it starts in WP and goes to FrontPage and then goes to the server.

FrontPage may be the main culprit as it often throws stuff in just because; I’ve often had to edit big strings of stupidity out of columns that FrontPage generated.

I do believe Ed had some computer changes fairly recently and may be dealing with newer versions of software; not sure if Vista is an issue here as well but that is possible. I’ll ask him.

I also suspect that the Macs that are having the most problems are those that have not upgraded recently as well; my understanding is that the longer Macs go without upgrades the more differences it finds with Windows, especially more advanced editions.

---

<div class="post-metadata">

### Author: ![AHunter3](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ahunter3/32/368_2.png) [@AHunter3](https://boards.straightdope.com/u/AHunter3)
#### Post date: [April 17, 2007, 4:52pm UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/15 "2007-04-17T16:52:48Z")

</div>

Don’t use Front Page if you want the results to be compatible with the rest of the world.

---

<div class="post-metadata">

### Author: ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)
#### Post date: [April 18, 2007, 3:20am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/16 "2007-04-18T03:20:55Z")

</div>

[Here is the W3C Validation Service.](http://validator.w3.org/) It should be very helpful in creating webpages everyone can enjoy, as opposed to ones tied to a specific platform.

---

<div class="post-metadata">

### Author: ![Sleel](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sleel](https://boards.straightdope.com/u/Sleel)
#### Post date: [May 8, 2007, 8:01am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/17 "2007-05-08T08:01:47Z")

</div>

I’ve had a problem with Unicode in Safari, both displaying and reading, on all parts of this site. The board doesn’t play well with Safari, and I’ve had the same problem with apostrophes, dashes, and other punctuation and diacritics that the OP mentions. Force-loading an encoding clears things up, but I shouldn’t have a problem with it in the first place since I use Unicode as the default encoding.

I’m not sure what the compatibility problem is for sure, but it’s darn odd. I’ve had no problems with double-byte character input on other message boards, but this one [chokes](http://boards.straightdope.com/sdmb/showthread.php?t=412564) on it sometimes.

Firefox works properly though, so it might be something a little off in how Safari deals with encoding. The odd thing about _that_ is that most of the guts of Safari is based on the open-source Web Kit, and usually the open-source community is very good about vetting universal compatibility issues.

---

<div class="post-metadata">

### Author: ![Auntbeast](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Auntbeast](https://boards.straightdope.com/u/Auntbeast)
#### Post date: [May 13, 2007, 10:43am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/18 "2007-05-13T10:43:01Z")

</div>

I’d just like to post support for supporting actual standards. Such programs as Front Page that are seeking to make their own standards are devious attempts to appropriate that which is meant to be universal. It ain’t called the World Wide Web for nothing.

Please encourage those folks that generate content for the web to do so in a manner that is respectful to the medium they are using. Using standard coding is as logical as NOT using a stone tablet to publish a newspaper.

---

<div class="post-metadata">

### Author: ![GuanoLad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/guanolad/32/42_2.png) [@GuanoLad](https://boards.straightdope.com/u/GuanoLad)
#### Post date: [May 16, 2007, 12:56am UTC](https://boards.straightdope.com/t/bizarre-code-in-staff-reports/399090/19 "2007-05-16T00:56:42Z")

</div>

[QUOTE=AHunter3]  
Don’t use Front Page if you want the results to be compatible with the rest of the world.  
[/QUOTE]

Absolutely. Frontpage had the audacity to expect you actually change the way the hosting server works in order to upload perfectly ordinary HTML. [Frontpage Extensions](http://en.wikipedia.org/wiki/FrontPage_Server_Extensions) are (or were, I don’t hear about them much anymore) a travesty.
