facebook

[Closed] JSP Editor and UTF-8 encoding

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #243424 Reply

    I have a problem with JSP Editor 🙁

    When I try to set character encoding to UTF-8 (this is requirement for me) in configuration of editor, I can set it for creating files only. But after creating file, when I write some UTF-8 characters and try to save, editor says , that “Encoding ISO-8859-1 cannot convert some characters …” and tell me that some characters are converted to ‘?’.

    How can I solve this problem ? I want to write JSP pages using UTF-8 always.

    Best regards
    DM

    #243425

    Brian Fernandes
    Moderator

    DM,

    The creation preference is only used by our template routines.

    A simple solution is to set the pageEncoding attribute for your JSP page, like so:
    <%@ page pageEncoding=”UTF-8″ %>

    Alternatively, you could try Window > Preferences > General > Content Types > Text > MyEclipse JSP Content Type and update the default encoding.

    Let us know how it turns out,
    Best,
    Brian.

    #243469

    Setting

    <%@ page pageEncoding=”UTF-8″ %>

    in page’s first line is enough for me (it looks like it works 🙂 )

    BTW. I can’t find “Window > Preferences > General” in my Eclipse 🙁
    When I try to open Window>Preferences, I got window with many options like Workbench, Ant, Build Order and so on…. (in tree, left panel …) but Genebral I can’t see 🙁

    Best regards
    DM

    #243472

    Brian Fernandes
    Moderator

    DM,

    Glad it’s working for you.
    Which versions of Eclipse and MyEclipse are you using? The General page and the content type preference might not be present in versions of Eclispe prior to 3.1

    Best,
    Brian.

    #243481

    I use Eclipse 3.0 and myEclipse 3.8.3.

    Best regards
    DM

    #243483

    Brian Fernandes
    Moderator

    DM,

    Wow, those are really dated versions (that is why you don’t see the General option in Preferences). If things are workign for you, great – you can continue with what you have now.
    Othewise, I would recommend an upgrade to Eclipse 3.1 and MyEclipse 4.0.3 for a bunch of new features and bug fixes.

    Best,
    Brian.

    #243505

    Thanks Brian for helping me 🙂

    Now it’s working and I’ll plan to upgrade my versions of Eclipse and myEclipse in my free time (after Christmas I think)

    Best regards
    and thank you again
    DM

    #243507

    Brian Fernandes
    Moderator

    DM,

    Happy holidays and enjoy MyEclipse 🙂

    Brian.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] JSP Editor and UTF-8 encoding

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