Re: Accidental à in html ... how?

Subject: Re: Accidental à in html ... how?
From: Lauren <lauren -at- writeco -dot- net>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Sat, 12 Dec 2015 16:59:32 -0800

On 12/11/2015 5:55 AM, Sean Brierley wrote:

Oh, I just want to identify what causes that random interaction.

It is not random; it is specific to encoding. You can learn more at the two links that follow. I describe your problem and exactly what is happening in this post.

http://www.w3.org/International/articles/definitions-characters/
http://stackoverflow.com/questions/3593024/html-character-entities-and-character-encoding-set

I mean, I can resolve this (search and replace), but am stuck on the "why"
of it all.

As I said, when Word encounters a code it does not recognize, it spits out Ã. That is the clearest "why" I can offer.

Specific to your case, you have encoding confusion between two charsets, likely between Mac and Microsoft.

Microsoft uses the Windows 1252 (Latin I) charset.
https://msdn.microsoft.com/en-us/goglobal/cc305145

Mac uses "Appleâs proprietary MacRoman character set."
http://www.alanwood.net/demos/macroman.html

The Mac number for à is 174 while the unicode number is 198. In Microsoft, 174 (alt+0174) produces  and 198 produces Ã. In both Mac and unicode 169 produces Â.  is 168 in Mac and 174 in Unicode, so MS produces  for 168 and  for 174.

My description above of your problem is an exact match to something you said in this thread.

On 12/10/2015 11:03 AM, Sean Brierley wrote:
The origin is Word. So, that's copy-and-pasted into a text editor. The
result has the AE character instead of the (r). I just can't figure out
why, and the author claims to be using Text Wrangler, which should do this
just fine (I tested -- I even tested with evil TextEdit).

What you are doing that has been discussed several times in this thread is copying from an application that uses one charset to an application that has a similar but different charset. You need to use the same charset between applications or use the same operating system for all edits to avoid this issue.

Lauren


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Visit TechWhirl for the latest on content technology, content strategy and content development | http://techwhirl.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-
To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives

Follow-Ups:

References:
Re: Accidental à in html ... how?: From: Robert Lauriston
Re: Accidental à in html ... how?: From: Sean Brierley

Previous by Author: Re: Accidental à in html ... how?
Next by Author: Re: Accidental à in html ... how?
Previous by Thread: Re: Accidental à in html ... how?
Next by Thread: Re: Accidental à in html ... how?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads