how to disable charset detection by meta tag

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default how to disable charset detection by meta tag

    i have page written in UTF-8 Encoding,
    but for some reason, i need to put this tag between <header> tag
    <meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS" />

    it seem meta-tag above caused dreamweaver trying to display my page in
    shift_jis,
    no matter that the right one is UTF8.
    anyway to turn off this function? thanks.


    icy2005 Guest

  2. Similar Questions and Discussions

    1. charset
      Hi, I'm a newbee, also in english. The thing is that I have a kind of javascript based search engine that use a .txt as its database, it has...
    2. CFChart and UTF-8 charset
      Hello to everybody. I have a problem with the CFChart. I have to create a chart (and this is ok after installing Xlibraries on the server) but I...
    3. How to disable copy/past (selectable='disable') fromTextArea
      How to disable copy/past and text selection ability from TextArea? <mx:Text has a nice selectable='false' propertie, but TextAre hasn't. Very,...
    4. Help - charset problem
      Hi My supplier just upgraded control panel to Plesk 7. Suddenly all my php/mysql pages stopped supporting "chrset" in the meta tag, for example: ...
    5. how to disable parallel port plug and play device detection
      Hello all, Does anyone know how to disable parallel port plug and play device detection? I have created a silent install for a printer but...
  3. #2

    Default Re: how to disable charset detection by meta tag

    Hi there,

    icy2005 wrote:
    > i have page written in UTF-8 Encoding, but for some reason, i need to
    > put this tag between <header> tag <meta http-equiv="Content-Type"
    > content="text/html; charset=SHIFT_JIS" />
    >
    > it seem meta-tag above caused dreamweaver trying to display my page
    > in shift_jis, no matter that the right one is UTF8. anyway to turn
    > off this function? thanks.
    Its not really clear from your subject/question what you want to do. Are
    you trying to include content from a UTF-8 encoded page into a page
    encoded as SHIFT_JIS? If you just have one page, encoded as UTF-8, then
    you should be putting a meta tag in the document head which specifies
    that the page is encoded as UTF-8:

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

    You *should* correctly identify the encoding used in the page. You
    cannot have a page encoded in one encoding and declare it to be another.

    Sorry if I have misunderstood and if that doesn't help could you
    possibly try to restate the problem in different terms?

    John
    John Donaldson Guest

  4. #3

    Default Re: how to disable charset detection by meta tag

    thank you for your kind reply.

    the page will need some of php process therefor it need to be written in
    UTF-8, regardless the last result will need to be converted into shift-jis.
    Below is the scheme of the process :
    UTF-8 Page (with Shift-JIS meta tag) --> Adding some PHP process --> Convert
    Into Shift-Jis --> Shift-Jis Page (Shift-JIS Meta tag)

    I am using Dreamwaver for editing and managing those pages. It is just fine,
    whenever user switched into *design view*, dreamwaver will try to interpret
    html-tags inside the page. but i just wondering how to turn off this function
    on *code view*.
    i am sorry if i misunderstood the basic purpose of this great software, but i
    tought the code view well oriented for programmer instead of html designer. it
    will be nice if html-tags interpretation could be turned on/off for code view,
    as programmer works with code instead of html tags.

    icy2005 Guest

  5. #4

    Default Re: how to disable charset detection by meta tag

    icy2005 wrote:
    > regardless the last result will need to be converted into shift-jis.
    If the document is being assembled server-side by re-encoding fragments
    from different text encodings, wouldn't server-side when you create the
    final result be the most logical place to write the page's encoding
    information as well?
    > i tought the code view well oriented for programmer instead of html
    > designer. it will be nice if html-tags interpretation could be
    > turned on/off for code view,
    If you explicitly declare an encoding for a document, I think its at
    least a little bit strange to expect it to be ignored. That really
    doesn't have anything to do with how you view the document, as source
    markup or as a layout. I may be missing something obvious, but I don't
    see any immediate way of telling DW to ignore an explicit declaration of
    the document's encoding. Again, I'm wondering if server-side would be
    the more logical place to have the final encoding written to match the
    actual encoding of the document?

    John
    John Donaldson Guest

  6. #5

    Default Re: how to disable charset detection by meta tag

    thank you John,
    > If you explicitly declare an encoding for a document, I think its at
    least a little bit strange to expect it to be ignored.
    I agree. Just hope DW could offer an option to force specific charset
    encoding on their next release.
    most browser offers flexibility to choose the charset automatically or defined
    one by user.
    > I'm wondering if server-side would be
    the more logical place to have the final encoding written to match the
    actual encoding of the document?
    unfortunately, some server-side language having problems with certain charset
    encoding,
    and there is nothing we could do with it. sigh...T.T

    meanwhile, the best way just strip out the charset tag when editing with DW,
    and add it later
    before display it to the browser. i really enjoy this great software.

    once again, thank you for your kind assistance John.









    icy2005 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139