Re: Chinese text in HTML page and Byte-Order Mark

Discussion in 'HTML' started by Tim Streater, May 27, 2013.

  1. Tim Streater

    Tim Streater Guest

    In article <>,
    Alfred Molon <> wrote:

    > I've noticed that some pages use <span lang="zh" xml:lang="zh"> to embed
    > Chinese text, but even simply embedding Chinese text in a UTF-8 HTML
    > page seems to work fine as well, for instance:
    > http://www.molon.de/galleries/Taiwan/Kaohsiung/Skyline/
    >
    > Why then would this language declaration be necessary?
    >
    > Another question, the above page validates without errors, but I get the
    > warning:
    >
    > Byte-Order Mark found in UTF-8 File.
    >
    > The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to
    > cause problems for some text editors and older browsers. You may want to
    > consider avoiding its use until it is better supported.
    >
    > How to remove the Byte-Order Mark?


    Open and save it with a decent text editor that doesn't save the BOM.
    TextWrangler, f'rinstance.

    --
    Tim

    "That excessive bail ought not to be required, nor excessive fines imposed,
    nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
    Tim Streater, May 27, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,168
    Mike Schilling
    Jun 29, 2007
  2. Replies:
    0
    Views:
    970
  3. dorayme
    Replies:
    0
    Views:
    236
    dorayme
    May 28, 2013
  4. Ben Bacarisse
    Replies:
    0
    Views:
    233
    Ben Bacarisse
    May 28, 2013
  5. Jukka K. Korpela
    Replies:
    0
    Views:
    361
    Jukka K. Korpela
    May 28, 2013
Loading...

Share This Page