Added dev mailing list to cc On Sun, 20 Feb 2022 at 17:58, Alceu Rodrigues de Freitas Junior < [email protected]> wrote:
> Greetings, > > I've made some more research about translating the Jenkins source code > and the current tooling available for that. > > The script translation-tool.pl considers converting UTF-8 files to > ASCII, but does do that in a proper way (in Perl code). > > I think that this is because due the history of Java support to Unicode. > The deprecated Brazilian Portuguese instructions mentions the online > tool http://itpro.cz/juniconv/ to convert UTF-8 to Java entities. That's > not very practical. > > Researching about a CLI tool, I found mentions to > > https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/native2ascii.html, > > but it seems it's usage was deprecated in newer versions of Java (and > OpenJDK). > > I also found this link https://bugs.openjdk.java.net/browse/JDK-8074431 > explaining the subject. > > I was originally using Vim to edit the property files, but I considered > a shot with my old IntelliJ IDE, following the instructions at > https://www.jetbrains.com/help/idea/encoding.html#file-encoding-settings > and configured locally the jenkins-core code to be treated as ISO-8859-1 > encoding. That took care of automatically converting the UTF-8 > characters of Brazilian Portuguese to the appropriate Java entities. > > It seems to me that this process generates the expected results, but > please let me know if it isn't. If it is acceptable, I would suggest to > add this information to the translation process documentation. > > On the other hand, it seems to be that Jenkins should be able to support > reading those properties files in UTF-8 by default nowadays. Is that a > known issue? > > Regards, > > Alceu > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Documentation" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-docs/2bf9c31d-78c9-a74b-2dff-a8774ba2e1fd%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BifdvL-cSDSj4GG2H%3DOjBBWq7B%2BCnY%2BG4jy-%3DR0pg9YN3A%40mail.gmail.com.
