facebook

web.xml encoding wrong [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #201619 Reply

    krusson
    Member

    Yesterday I downloaded 2.7 R2, and it’s working great except for one problem. When I went to change my web.xml today, I got the following error message when I tried to save the file:

    “web.xml will be saved in “UTF-8″ encoding which is not the current workbench encoding. This can result in configlcts with other tools. Continue anyway?”

    Here are the first 2 lines of my web.xml:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”&gt;

    I’ve got Eclipse 2.1.1 installed.

    What is the proper setting for RC2? It saved fine in RC1.

    Thanks,
    Kelley

    #201620 Reply

    Riyad Kalla
    Member

    Kelley,
    The default workbench encoding on Windows (assuming that is what you are using) is Cp1252. So when you specify this file to be UTF-8 (which is fine) its just giving you a warning letting you know that this might cause trouble since your default workbench encoding is not the same. I believe 99% of the time you can just ignore this warning but in the cases where you have very obscure encoding-specific characters in your xml files, then you might want to consider adjusting the file encoding to ensure that the characters are encoded/decoded correctly in the file.

    An example of what I mean is if you change the file encoding in the XML header from UTF-8 to Cp1252, you won’t get the error anymore… but then again you will probably have issues with this file on other platforms. So just leave it UTF-8 and ignore the warning.

    #201621 Reply

    krusson
    Member

    OK. Thanks!

    #201622 Reply

    Riyad Kalla
    Member

    No problem

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: web.xml encoding wrong [Closed]

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