You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Zhong ZHENG <he...@gmail.com> on 2005/10/14 10:34:53 UTC
[m2] how to define the output HTML's encoding when using site:site?
Hi, there,
I am using maven 2 to generate project site. But it does not seem to work
well when generating chinese pages... I set the xdoc encoding to UTF-8, but
i don't know where i could define the encoding of the output HTML. All HTML
pages are encoded in ISO-8859-1. I know that for maven 1 i could modify the
default.properties in maven.jar, but what should i do for maven2?
Thanks in advance.
--
ZHENG Zhong
1 Avenue Alphand
75116 Paris, France
+33 6 76 80 45 90
Re: [m2] how to define the output HTML's encoding when using site:site?
Posted by Brett Porter <br...@gmail.com>.
Please file this as a bug. We need a better XML parser to be used for
it in this case - you should be able to use the XML encoding to do
this.
- Brett
On 11/21/05, Jean-Charles Giardina <jc...@gmail.com> wrote:
> this way didn't work with text in site.xml, but really work with all
> other src/site files !
>
> 2005/10/14, Kenney Westerhof <ke...@apache.org>:
> > On Fri, 14 Oct 2005, Zhong ZHENG wrote:
> >
> > Use this:
> >
> > <build>
> > <plugins>
> > <plugin>
> > <artifactId>maven-site-plugin</artifactId>
> > <configuration>
> > <outputEncoding>UTF-8</outputEncoding>
> > </configuration>
> > </....
> >
> > HTH,
> >
> > -- Kenney
> >
> > > Hi, there,
> > >
> > > I am using maven 2 to generate project site. But it does not seem to work
> > > well when generating chinese pages... I set the xdoc encoding to UTF-8, but
> > > i don't know where i could define the encoding of the output HTML. All HTML
> > > pages are encoded in ISO-8859-1. I know that for maven 1 i could modify the
> > > default.properties in maven.jar, but what should i do for maven2?
> > >
> > > Thanks in advance.
> > >
> > > --
> > >
> > > ZHENG Zhong
> > >
> > > 1 Avenue Alphand
> > > 75116 Paris, France
> > > +33 6 76 80 45 90
> > >
> >
> > --
> > Kenney Westerhof
> > http://www.neonics.com
> > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] how to define the output HTML's encoding when using site:site?
Posted by Jean-Charles Giardina <jc...@gmail.com>.
this way didn't work with text in site.xml, but really work with all
other src/site files !
2005/10/14, Kenney Westerhof <ke...@apache.org>:
> On Fri, 14 Oct 2005, Zhong ZHENG wrote:
>
> Use this:
>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-site-plugin</artifactId>
> <configuration>
> <outputEncoding>UTF-8</outputEncoding>
> </configuration>
> </....
>
> HTH,
>
> -- Kenney
>
> > Hi, there,
> >
> > I am using maven 2 to generate project site. But it does not seem to work
> > well when generating chinese pages... I set the xdoc encoding to UTF-8, but
> > i don't know where i could define the encoding of the output HTML. All HTML
> > pages are encoded in ISO-8859-1. I know that for maven 1 i could modify the
> > default.properties in maven.jar, but what should i do for maven2?
> >
> > Thanks in advance.
> >
> > --
> >
> > ZHENG Zhong
> >
> > 1 Avenue Alphand
> > 75116 Paris, France
> > +33 6 76 80 45 90
> >
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] how to define the output HTML's encoding when using site:site?
Posted by Kenney Westerhof <ke...@apache.org>.
On Fri, 14 Oct 2005, Zhong ZHENG wrote:
Use this:
<build>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</....
HTH,
-- Kenney
> Hi, there,
>
> I am using maven 2 to generate project site. But it does not seem to work
> well when generating chinese pages... I set the xdoc encoding to UTF-8, but
> i don't know where i could define the encoding of the output HTML. All HTML
> pages are encoded in ISO-8859-1. I know that for maven 1 i could modify the
> default.properties in maven.jar, but what should i do for maven2?
>
> Thanks in advance.
>
> --
>
> ZHENG Zhong
>
> 1 Avenue Alphand
> 75116 Paris, France
> +33 6 76 80 45 90
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org