Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am learning HTML and usually use a PC,but, this time i used a mac to see what it would be like for a mac,
i wrote this:
HTML
<!DOCTYPE html>
<html>
<body>
<p>hi</p>
</body>
</html>
and i got this when it opened in Google Chrome:
bplist00�_WebMainResource� _WebResourceFrameName_WebResourceTextEncodingName_WebResourceData
_WebResourceMIMEType^
WebResourceURLPUutf-8O�
<!DOCTYPE html>
<html>
<body>

hi


</body>
</html>
Ytext/html_file:///index.html (?]o����V` u





how do i fix this?
Posted
Updated 26-Apr-12 9:05am
v4
Comments
Sergey Alexandrovich Kryukov 26-Apr-12 12:04pm    
Steps to reproduce, please.
--SA
lewax00 26-Apr-12 13:38pm    
You should include some more information, e.g. "i got this" is not descriptive, how did you get that output? In an editor, a browser, or some other program?

I'd also like to note, rendering HTML does not change because of the operating system, the browser controls that.

There are no any problems of interoperability between Windows, MAC OS X or any other systems, no problems whatsoever. If you see some problem, it must be because you have done something extremely weird. If you accurately describe what it was, the problem would become addressable.

—SA
 
Share this answer
 
Comments
Member 8749241 26-Apr-12 15:03pm    
i made a page in text edit, just like the code you see at the top, i changed the file extension from .txt to .html, i double clicked on it, it opened in Google Chrome, and the webpage looked like i said above. thats all i know.
Sergey Alexandrovich Kryukov 26-Apr-12 15:20pm    
You certainly mangled it somewhere on the road, as first text has little to nothing to do with the messed-up one. You say nothing about what did you do on what platform, how you moved/deployed/opened, what was "text edit" and so one. Normally, it does not matter, but please understand: there is no such thing as miracle. If you made a mess and cannot explain it, you could do it anywhere on the road. You media could have been corrupted, whatever...
--SA
I'm guessing your "text edit" didn't store it as plain text to begin with, so the extra symbols are file metadata/headers. Changing the file extension instead of just saving as HTML to begin with exposed the additional data (which shouldn't be present in an HTML file and caused it to break in Chrome).

I suggest trying to create the file again TextMate[^] (Mac users tell me it's good for this kind of thing), and save it as an HTML file directly.
 
Share this answer
 
v2
Comments
Member 8749241 26-Apr-12 16:02pm    
Thank you so much!!!! it is the best!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900