• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Content-type question

 
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I put the content-type line at the top of my HTML page for text/html. The basic page I created with DreamWeaver MX. When I display in the browser the Content-type: text/html shows up. How come? I read the file in using Perl and spit the contents out directly and the page displays as should. Is there something I should know about DreamWeaver or can someone add some helpful insight into why this is occuring? Thanks.

Rob
 
Sheriff
Posts: 67502
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From what you have written, I really have no idea what your issue is.

Are you saying that whatever means you are using to set the content-type is appearing as text?

How are you trying to accomplish this?
[ March 02, 2006: Message edited by: Bear Bibeault ]
 
Rob Hunter
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the code (minus the #'s) and it shows up regardless.

Content#-type: text#/html


#<#html>
#<#head>
#<#title>Untitled Document</title>
#<meta http#-equiv=#"#Content#-Type" content="#text#/html; charset=iso-8859-1">
#<#/head>

<body>

</body>
</html>
 
Rob Hunter
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The HTML code is fine (displays as should) but Content-type: text/html displays as text at the top of the page.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use this with no problem....

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5">

Eric
 
Bear Bibeault
Sheriff
Posts: 67502
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I still don't understand what you are trying to do, and what you thought that

Content#-type: text#/html



would accomplish.
 
permaculture is giving a gift to your future self. After reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic