Nevermind.  I found out how - using the File -> Open dialog box, I can open the file using a specified character set (Read As:).

-- James

     
o o o o o o o . . .   _______________________ ________=======_T___
   
o      _____            |James Madill         | |Duke U. Health Sys|
>.][__n_n_| D[  ====|____  |[EMAIL PROTECTED]| |  (919) 668-2411  |
 (________|__|_[____/____]_
|_____________________|_|__________________|
_/oo  O-O-O  `  oo     oo  'o^o^o           o^o^o` 'o^o            o^o`
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
<
http://www.duke.edu/~madil001/>
----- Forwarded by James Madill/mcis/mc/Duke on 10/16/06 10:02 -----
James Madill/mcis/mc/Duke

10/16/06 10:00

To
[email protected]
cc
Subject
BBEdit not opening some files




I have some html files inherited from a previous webmaster that BBEdit 8.5.1 is unable to open.  When I attempt to open one, I get the following error message:


        This operation couldn't be completed, because an
        error occurred.
       
        One or more characters were encountered that cannot be
        represented in the desired text encoding (MacOS Error code:
        -8754)


After experimenting with chopping the file into pieces (head and tail operations), I was able to determine the reson for the error.

The HTML code was mal-formed.  It had a meta definition for us-ascii

        <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

and later in the file, there were high order ascii characters (A0).


The section of the manual, 'Choosing the Encoding for a Document' (pg 26) confirms this, but does not mention anything about what to do to open a mal-formed HTML document.


Does anyone have any ideas how I can get BBEdit to open these files without resorting to splitting them, then piecing them back together?


-- James

     
o o o o o o o . . .   _______________________ ________=======_T___
   
o      _____            |James Madill         | |Duke U. Health Sys|
>.][__n_n_| D[  ====|____  |[EMAIL PROTECTED]| |  (919) 668-2411  |
 (________|__|_[____/____]_
|_____________________|_|__________________|
_/oo  O-O-O  `  oo     oo  'o^o^o           o^o^o` 'o^o            o^o`
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
<
http://www.duke.edu/~madil001/>

Reply via email to