You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bruno Aranda <br...@gmail.com> on 2005/12/16 13:28:12 UTC

Re: RE : RE : Problems with special characters in APT format (latin-1 and copyright symbol)

I can confirm that it works on Linux (FC3) and without having to set
the LANG environment variable (which currently is 'es_ES.UTF-8').

Thanks,

Bruno

2005/12/16, Olivier Lamy <ol...@accor.com>:
> I have added this workaround in :
> http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-Handlespecialcharac
> tersinsite
>
> It could be adding in
> http://maven.apache.org/guides/mini/guide-site.html (to help
> french/others guys how use specials characters). (let me know if you
> want a patch on it ?)
>
> I have tested this solution on a solaris machine and on a windows/cygwin
> and it's ok.
> Probably It works too for others *n*x systems.
>
> - Olivier
>
> -----Message d'origine-----
> De : Olivier Lamy [mailto:olivier.lamy@accor.com]
> Envoyé : vendredi 16 décembre 2005 09:38
> À : 'Maven Users List'
> Objet : RE : Problems with special characters in APT format (latin-1 and
> copyright symbol)
>
>
> Hi,
> I have try some workarounds and I have fine one to correctly display
> specials characters (french accents).
>
> In my eclipse.ini :
> Adding -Dfile.encoding=ISO-8859-1
>
> If using xmlbuddy with eclipse to edit xdoc files set the encoding
> Honor encoding
> Default to ISO-8859-1
>
> Configuration in pom
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-site-plugin</artifactId>
>         <configuration>
>           <outputEncoding>UTF-8</outputEncoding>
>         </configuration>
>       </plugin>
>
> On the solaris machine
> In $HOME/.profile
> MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not
> mandatory for m2 but for m1). LANG=en_US.ISO8859-15
>
> And surprise it's fine ;-))
>
> But not for surefire report when log contains special characters. I look
> at
> http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
> /java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
> markup
>
> And I see (I'm not really sure if this is using) : writer.write("<?xml
> version=\"1.0\" encoding=\"UTF-8\" ?>\n");
>
> Could it be in the configuration or using something like
> http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/Strin
> gEscapeUtils.html#escapeXml(java.lang.String)
>
> Because as I see, the following is not probably not enough : message =
> StringUtils.replace( report.getThrowable().getMessage(), "<", "&lt;" );
> message = StringUtils.replace( message, ">", "&gt;" ); message =
> StringUtils.replace( message, "\"", "&quot;" );
>
>
> - Olivier
>
> -----Message d'origine-----
> De : Bruno Aranda [mailto:brunoaranda@gmail.com]
> Envoyé : vendredi 16 décembre 2005 09:25
> À : Maven Users List
> Objet : Re: Problems with special characters in APT format (latin-1 and
> copyright symbol)
>
>
> Nobody knows this? Has someone used accents in the apt format? Should I
> try an alternative approach? thanks!
>
> Bruno
>
> 2005/12/12, Bruno Aranda <br...@gmail.com>:
> > Hi there,
> >
> > I am trying to just the APT format but I cannot output some special
> > symbols using unicode, such as the copyritght and latin-1 special
> > characters (accents). I am following the APT guide [1], but when using
>
> > the copyright symbol I get this in the screen:
> >
> > Â(c)
> >
> > There is a strange character before the copyright. I've tried \251,
> > \xA9, \u00a9 ... I have similar results for other unicode characters.
> > Do I have to change the encoding somewhere? I am running a linux box.
> >
> > Regards,
> >
> > Bruno
> >
> > [1] http://maven.apache.org/guides/mini/guide-apt-format.html
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> This e-mail, any attachments and the information contained therein
> ("this message") are confidential and intended solely for the use of the
> addressee(s). If you have received this message in error please send it
> back to the sender and delete it. Unauthorized publication, use,
> dissemination or disclosure of this message, either in whole or in part
> is strictly prohibited.
> **********************************************************************
> Ce message électronique et tous les fichiers joints ainsi que  les
> informations contenues dans ce message ( ci après "le message" ), sont
> confidentiels et destinés exclusivement à l'usage de la  personne à
> laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
> merci  de le renvoyer à son émetteur et de le détruire. Toutes
> diffusion, publication, totale ou partielle ou divulgation sous quelque
> forme que se soit non expressément autorisées de ce message, sont
> interdites.
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> 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