SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Threaded View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Which DOCTYPE we use mobile sites which use Unicode charectors?

    Can anybody help us? which DOCTYPE should we use in mobile websites which use Unicode characters?

    1.)
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Site Name</title>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
    ...

    2.)
    Code:
    <!DOCTYPE HTML PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html
     xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    ...
    3.)
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Site Name</title>
    <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
    
    ...

    If we missed anything, pls let us know.

    and pls add this:
    a) it is mandatory use of "UTF" is in upper case?
    b) Which meta tag is best?
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    or
    <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />


    thanks in advance
    Last edited by mclin; Jul 9, 2010 at 11:20. Reason: mispelling


Bookmarks

Posting Permissions

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