[jira] Created: (MEVENIDE-633) Default encoding for xhtml file in netbeans

View: New views
7 Messages — Rating Filter:   Alert me  

[jira] Created: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Default encoding for xhtml file in netbeans
-------------------------------------------

                 Key: MEVENIDE-633
                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
             Project: mevenide
          Issue Type: Bug
          Components: mevenide-netbeans
         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
            Reporter: Jiri Pejchal
            Assignee: Milos Kleint


When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
than UTF-8 is used for that file.

However when I right click on a maven project and create an xhtml file without
encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).

I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
Sources -> Encoding set to UTF-8.

With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
file to another one in facelets.



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint updated MEVENIDE-633:
----------------------------------

    Affects Version/s: NB_3.1
        Fix Version/s: NB_3.2
          Component/s:     (was: mevenide-netbeans)
                       mevenide2-netbeans

where (which folder) are you creating the xhtml file?
I'm wondering if setting this property "project.build.sourceEncoding" with value UTF-8 fixes your problem?

I suppose the problem is in the fact that maven so far doesn't have a generic idea about projects encoding. so I'm trying to check the compiler plugin for sources/test sources (each can have different encodings)
and then resources plugin for resource roots.
any other source root is ignored I think (which reminds me we should check the source root of the website and assign encoding by content of site-plugin configuration)

however it's changing now on maven side    http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding, that's where the property is coming from.
The property is currently used in the IDE if no "plugin specific" encodings are found. however the currently released versions of plugins don't make use of it AFAIK.



> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134855#action_134855 ]

Milos Kleint commented on MEVENIDE-633:
---------------------------------------

project.build.sourceEncoding is meant to be added to pom.xml's <properties> element.

> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134858#action_134858 ]

Milos Kleint commented on MEVENIDE-633:
---------------------------------------

http://fisheye.codehaus.org/changelog/mevenide/?cs=5273 
special check for site-plugin and it's setting of encoding for files under src/site

> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134964#action_134964 ]

Jiri Pejchal commented on MEVENIDE-633:
---------------------------------------

Setting project.build.sourceEncoding to UTF-8 has indeed fixed the problem. Thanks.

> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156542#action_156542 ]

Jaromir Uhrik commented on MEVENIDE-633:
----------------------------------------

This bug was transferred to the NetBeans Issuezilla bug tracking system as http://www.netbeans.org/issues/show_bug.cgi?id=154491

> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Closed: (MEVENIDE-633) Default encoding for xhtml file in netbeans

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint closed MEVENIDE-633.
---------------------------------

    Resolution: Duplicate

closing the issue as duplicate of the newly created one in netbeans.org issuezilla.
Please post your additional comments to the new issue.

> Default encoding for xhtml file in netbeans
> -------------------------------------------
>
>                 Key: MEVENIDE-633
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-633
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.1
>         Environment: windows xp, netbeans 6.1, maven plugin 3.1.1
>            Reporter: Jiri Pejchal
>            Assignee: Milos Kleint
>             Fix For: NB_3.2
>
>
> When I set encoding in Netbeans for a web project to UTF-8 and do a right click on project name in
> Projects: New -> New xhtml file and the file has no declared encoding in meta tag,
> than UTF-8 is used for that file.
> However when I right click on a maven project and create an xhtml file without
> encoding declaration in the meta tag, the platform encoding is used (cp-1250 in my case).
> I have maven plugin 3.1.1 and Project properties (right click on a maven project with letters 'ma') ->
> Sources -> Encoding set to UTF-8.
> With encoding declaration in the meta tag everything is OK, but I need to include the xhtml
> file to another one in facelets.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email