Netbeans 7.0 breaks JSP encoding - how to fix it?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Netbeans 7.0 breaks JSP encoding - how to fix it?

gshegosh
I set my projects to UTF-8 and also I have following snippet in my web.xml:


Code:

    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <page-encoding>utf-8</page-encoding>
        </jsp-property-group>
    </jsp-config>




In Netbeans 6.9.1, when I opened a .jsp file in editor, encoding was properly detected as UTF-8. Since upgrading to Netbeans 7.0, these same files open as ISO-8859-1 which breaks national characters.

Is there some way to tell Netbeans to use UTF-8 for EVERYTHING? I'm tired of this stuff. I already have to edit my .properties files outside the IDE because it assumes they HAVE to be in ISO-8859-1 (and I have worked around this limitation and encode them in UTF-8 for translators convenience). And now JSPs, too?




Reply | Threaded
Open this post in threaded view
|

Netbeans 7.0 breaks JSP encoding - how to fix it?

gshegosh
Anyone?
I don't believe nobody hit that problem - no I18n in Your apps? ;-)




Reply | Threaded
Open this post in threaded view
|

Re: Netbeans 7.0 breaks JSP encoding - how to fix it?

Petr Jiricka-2
In reply to this post by gshegosh
Hi,

thanks for reporting, and we really apologize for the incovenience - yes, this is a bug: http://netbeans.org/bugzilla/show_bug.cgi?id=198637

This needs to be fixed for NetBeans 7.0.1. I also filed an enhancement request for the .properties case: http://netbeans.org/bugzilla/show_bug.cgi?id=198631

Thanks again for the report,
Petr

On May 6, 2011, at 3:55 PM, gshegosh wrote:

I set my projects to UTF-8 and also I have following snippet in my web.xml:


Code:

   <jsp-config>
       <jsp-property-group>
           <url-pattern>*.jsp</url-pattern>
           <page-encoding>utf-8</page-encoding>
       </jsp-property-group>
   </jsp-config>




In Netbeans 6.9.1, when I opened a .jsp file in editor, encoding was properly detected as UTF-8. Since upgrading to Netbeans 7.0, these same files open as ISO-8859-1 which breaks national characters.

Is there some way to tell Netbeans to use UTF-8 for EVERYTHING? I'm tired of this stuff. I already have to edit my .properties files outside the IDE because it assumes they HAVE to be in ISO-8859-1 (and I have worked around this limitation and encode them in UTF-8 for translators convenience). And now JSPs, too?





Reply | Threaded
Open this post in threaded view
|

Netbeans 7.0 breaks JSP encoding - how to fix it?

gshegosh
In reply to this post by gshegosh
Yay, the only reply I get is a spam message. It couldn't get much better than that.




Reply | Threaded
Open this post in threaded view
|

Netbeans 7.0 breaks JSP encoding - how to fix it?

gshegosh
In reply to this post by gshegosh
Thank You Petr. I'll watch the bug report and if I can help somehow - I will. Best regards.