facebook

UTF-8 problem? [Closed]

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

    etornick
    Member

    When I create a project using myeclipe File-new-other-webmodule…
    And then I go to the newly created project and right click to add struts capabilities… It loads all the necessary tld files and struts jars etc.

    Now if you go to edit a tld.. lets say.. just add a space…and then try to save it … There is an error that comes up and says the workbench does not use UTF encoding.. the build then fails with an exception.

    After that the project wont build anymore.

    Am I doing something wrong here?

    thanx,
    Ed

    #202759 Reply

    Riyad Kalla
    Member

    Ed,
    You shouldn’t be getting an exception. That error pops up when ever your file encoding (I’m assuming you have a default XML header that specifies the encoding as “UTF-8”) does not match the default workbench encoding. The default for Windows is cp1252. You can change this under the Window->Prefs->Workbench->Editors setting (At the bottom). Normally when you get this, just hit “yes” to save the file anyway. Or you can change your workbench encoding to UTF-8 (Which is fine as well).

    This warning doesn’t usually effect English locales since our alphabets consists of pretty much ASCII codes. But this warning becomes important if for example you have your file encoding set to “ASCII” and your workbench encoding is in Big5 and in your XML you type a lot of international characters, then go to save the file; because of the ASCII encoding set for the XML file, your double-byte characters will be ruined when they written out.

    #202769 Reply

    etornick
    Member

    Riyad:

    I shut down Eclipse and then reloaded the project, added a space again to the .tld file I was working on and went to save it again.

    This time it gave me a warning but saved the file without the exception.

    Good enough for me!

    Thanks,
    Ed

    #202775 Reply

    Riyad Kalla
    Member

    I’m glad it’s working. If anything crops up, come back and let us know.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: UTF-8 problem? [Closed]

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