Default encoding for file

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

Default encoding for file

by george_007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

when set encoding for Netbeans web project to UTF-8 and choose with right click
Project -> 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) .

Can I set the default encoding for xhtml files to UTF-8 somehow or is it a bug?

I have maven plugin 3.0.10 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.

Thanks.

Jiri Pejchal

Re: Default encoding for file

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for late reply, I've missed this message somehow.

What you describe is probably a bug, the maven support shall work
exactly the same as  ant web projects as far as I'm concerned.
please file a bug, preferably with a sample project setup.

Regards

milos

On Thu, Feb 28, 2008 at 1:40 PM, george_007 <jiri.pejchal@...> wrote:

>
>  Hi,
>
>  when set encoding for Netbeans web project to UTF-8 and choose with right
>  click
>  Project -> 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) .
>
>  Can I set the default encoding for xhtml files to UTF-8 somehow or is it a
>  bug?
>
>  I have maven plugin 3.0.10 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.
>
>  Thanks.
>
>  Jiri Pejchal
>  --
>  View this message in context: http://www.nabble.com/Default-encoding-for-file-tp15734631p15734631.html
>  Sent from the mevenide - user mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email