facebook

what is the difference between encoding=UTF-8 and ISO-8859-1

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #318414 Reply

    I have a problem with xml file now.

    I want to create a web project. In that I created web.xml file. If we put encoding property i.e,

    <?xml version=”1.0″ encoding=”UTF-8″?>

    its giving Error Status-404

    If we put encoding property i.e.,

    <?xml version=”1.0″ encoding=”ISO-8859-1″?>

    its giving exact output.

    Can you explain me what is the difference between them?

    Which is best to execute the servlet error free?

    Please send me the answer.

    Thanks,
    Arif

    #318427 Reply

    support-swapna
    Moderator

    shaikarif.129,

    1) Here is a link which explains the difference between ISO and UTF standards :
    http://www.java-forums.org/xml/6066-xml-parse-throws-saxparseexception-encoding-utf-8-insteadof-iso-8859-1-a.html

    2) Here are links to understand which one is better :
    http://echodevil.com/blog/1001/ISO-8859-1+vs.+UTF-8.html
    http://www.webmasterworld.com/forum23/4227.htm

    3) I tried to replicate the issue at my end with a simple web project and both the encoding properties worked fine.

    4) Which version of MyEclipse are you working with ? Paste the Build Id here for me from Help > About MyEclipse Enterprise Workbench > Build Id.

    5) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now replicate the issue with encoding property : <?xml version=”1.0″ encoding=”UTF-8″?> and paste the error logged in the .log file here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: what is the difference between encoding=UTF-8 and ISO-8859-1

You must be logged in to post in the forum log in