You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Naoki Nose (JIRA)" <ji...@codehaus.org> on 2006/03/13 17:15:29 UTC

[jira] Created: (MSITE-104) There is no way to specify the input encoding of site documents

There is no way to specify the input encoding of site documents 
----------------------------------------------------------------

         Key: MSITE-104
         URL: http://jira.codehaus.org/browse/MSITE-104
     Project: Maven 2.x Site Plugin
        Type: Bug

    Reporter: Naoki Nose


In Japan,it's necessary to specify the input encoding of site document different from the system default,
because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
We need to specify it in POM.

-- 
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


[jira] Commented: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Trustin Lee (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-104?page=comments#action_62609 ] 

Trustin Lee commented on MSITE-104:
-----------------------------------

Same here in Korea!  This issue is not major but must be a blocker.

Here's the hint:

http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/%3C44084AB2.8080608@najdi.si%3E

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0

>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Commented: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Takayoshi Kimura (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-104?page=comments#action_62850 ] 

Takayoshi Kimura commented on MSITE-104:
----------------------------------------

I have tried Trustin's patch and these work fine!
Please commit it!

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Updated: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-104?page=all ]

Brett Porter updated MSITE-104:
-------------------------------

    Fix Version:     (was: 2.0)
                 2.0-beta-5

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0-beta-5
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Commented: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Trustin Lee (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-104?page=comments#action_62618 ] 

Trustin Lee commented on MSITE-104:
-----------------------------------

I attached patches that adds "inputEncoding" property to maven-site-plugin.  I created these patchs against the Maven SVN trunk.  Everything works just fine now!

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Commented: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Borut Bolcina (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-104?page=comments#action_65485 ] 

Borut Bolcina commented on MSITE-104:
-------------------------------------

I was eagerly awaiting this feature. Thanks!

Writing documentation in UTF-8 works now, ....... but menu items in site.xml still don't work. XML prolog is clearly stating <?xml version="1.0" encoding="UTF-8"?> for site.xml. This is not even neccessary, I think, as encoding is taken from

           <plugin>
               <artifactId>maven-site-plugin</artifactId>
               <version>2.0-beta-5</version>
               <configuration>
                   <inputEncoding>UTF-8</inputEncoding>
                   <outputEncoding>UTF-8</outputEncoding>
               </configuration>
           </plugin>

So, it works in apt, xdoc and fml, but not in site.xml. 

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-5
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Updated: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Trustin Lee (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-104?page=all ]

Trustin Lee updated MSITE-104:
------------------------------

    Attachment: maven-site-plugin-input-encoding.diff

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Updated: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Trustin Lee (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-104?page=all ]

Trustin Lee updated MSITE-104:
------------------------------

    Attachment: doxia-input-encoding.diff

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0
>  Attachments: doxia-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Closed: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-104?page=all ]
     
Brett Porter closed MSITE-104:
------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

applied with modifications:
- a FNFE was ignored, so I removed that and let it propogate as it used to
- the unsupported excoding was logged and ignored, which would have rendered an empty site. Propogated as an IOException
- removed the deprecated method since we can still break the API in this alpha state without affecting other software
- removed additional logging of parameters in the site mojo.

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-5
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Updated: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-104?page=all ]

Brett Porter updated MSITE-104:
-------------------------------

    Fix Version: 2.0

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0

>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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


[jira] Commented: (MSITE-104) There is no way to specify the input encoding of site documents

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-104?page=comments#action_62983 ] 

Brett Porter commented on MSITE-104:
------------------------------------

just need to apply patch

> There is no way to specify the input encoding of site documents 
> ----------------------------------------------------------------
>
>          Key: MSITE-104
>          URL: http://jira.codehaus.org/browse/MSITE-104
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Reporter: Naoki Nose
>      Fix For: 2.0-beta-5
>  Attachments: doxia-input-encoding.diff, maven-site-plugin-input-encoding.diff
>
>
> In Japan,it's necessary to specify the input encoding of site document different from the system default,
> because there is two commonly used encodings in Japanese environment(Shift_JIS and EUC-JP).
> But current maven-site-plugin doesn't provide the way to specify the input encoding of site documents explicitly.
> We need to specify it in POM.

-- 
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