Stupid configuration issue: utf8 ?

317 views
Skip to first unread message

Erwan de Ferrières

unread,
Aug 11, 2014, 10:50:10 AM8/11/14
to jenkins...@googlegroups.com
Hi all,

I have a configuration issue I can't resolve. I'm using the latest release, Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-67-generic x86_64), on a cloud machine hosted by rackspace.
We have commit message in French, and jenkins is displaying the accentued characters wrongly, as well as in the build log.

Here are some examples :

restreintes pour la visibilit�� des messages


grunt...@0.7.0 node_modules/grunt-shell
��������� ch...@0.4.0 (has-...@0.1.7, ansi-...@1.0.0, strip...@0.1.1)

Which information should I give you so we can find what is going wrong ?

Regards,

Daniel Beck

unread,
Aug 11, 2014, 1:22:57 PM8/11/14
to jenkins...@googlegroups.com
Make sure LANG has a UTF-8 value (e.g. en_US.UTF-8) on all nodes.

If that doesn't help, post /systemInfo contents.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Erwan de Ferrières

unread,
Aug 12, 2014, 3:03:10 AM8/12/14
to jenkins...@googlegroups.com, m...@beckweb.net
Hi,

here are the outputs :
root@jenkins:~# locale
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=fr_FR.UTF-8

executable-war/var/lib/jenkins/jenkins.war
file.encodingANSI_X3.4-1968
file.encoding.pkgsun.io
file.separator/
hudson.diyChunkingtrue
java.awt.graphicsenvsun.awt.X11GraphicsEnvironment
java.awt.headlesstrue
java.awt.printerjobsun.print.PSPrinterJob
java.class.pathjenkins.war
java.class.version50.0
java.endorsed.dirs/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/endorsed
java.ext.dirs/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home/usr/lib/jvm/java-6-openjdk-amd64/jre
java.io.tmpdir/tmp
java.library.path/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
java.protocol.handler.pkgsorg.apache.axis.transport|
java.runtime.nameOpenJDK Runtime Environment
java.runtime.version1.6.0_31-b31
java.specification.nameJava Platform API Specification
java.specification.vendorSun Microsystems Inc.
java.specification.version1.6
java.vendorSun Microsystems Inc.
java.vendor.urlhttp://java.sun.com/
java.vendor.url.bughttp://java.sun.com/cgi-bin/bugreport.cgi
java.version1.6.0_31
java.vm.infomixed mode
java.vm.nameOpenJDK 64-Bit Server VM
java.vm.specification.nameJava Virtual Machine Specification
java.vm.specification.vendorSun Microsystems Inc.
java.vm.specification.version1.0
java.vm.vendorSun Microsystems Inc.
java.vm.version23.25-b01
jna.platform.library.path/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
line.separator
mail.smtp.sendpartialtrue
mail.smtps.sendpartialtrue
os.archamd64
os.nameLinux
os.version3.2.0-67-generic
path.separator:
sun.arch.data.model64
sun.boot.class.path/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/classes
sun.boot.library.path/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64
sun.cpu.endianlittle
sun.cpu.isalist
sun.io.unicode.encodingUnicodeLittle
sun.java.commandjenkins.war -Xloggc:/var/log/jenkins/gclog.log --httpPort=8080
sun.java.launcherSUN_STANDARD
sun.jnu.encodingANSI_X3.4-1968
sun.management.compilerHotSpot 64-Bit Tiered Compilers
sun.os.patch.levelunknown
svnkit.http.methodsDigest,Basic,NTLM,Negotiate
svnkit.ssh2.persistentfalse
user.countryUS
user.dir/var/lib/jenkins
user.home/var/lib/jenkins
user.languageen
user.namejenkins
user.timezoneEurope/Paris

Stephen Connolly

unread,
Aug 12, 2014, 3:47:59 AM8/12/14
to jenkins...@googlegroups.com, m...@beckweb.net
Are you running in Tomcat? IIRC Tomcat does not do UTF-8 by default... or something like that

Erwan de Ferrières

unread,
Aug 12, 2014, 3:55:55 AM8/12/14
to jenkins...@googlegroups.com, m...@beckweb.net
No, there is no tomcat on the machine.
Only a nginx in front, that's all.

Richard Bywater

unread,
Aug 12, 2014, 4:23:57 AM8/12/14
to jenkins...@googlegroups.com

I'm not an expert in the area, but could it be related to your Browser's language setting?  (What language is in the request header?)

Richard.

Erwan de Ferrières

unread,
Aug 12, 2014, 4:43:12 AM8/12/14
to jenkins...@googlegroups.com
Nope, I don't think it's coming from there.
On the build summary page, the characters are well displayed
on the console output, KO
on the console plain text output, KO for the accented chars, but OK for the ASCII created by grunt.

Couldn't this be coming from the jdk I'm using (openjdk) ?

Daniel Beck

unread,
Aug 12, 2014, 7:20:26 AM8/12/14
to jenkins...@googlegroups.com
Are you building on master or a slave node? If the latter, it has its own /systemInfo and also needs to have a UTF-8 locale.

Erwan de Ferrières

unread,
Aug 12, 2014, 7:37:34 AM8/12/14
to jenkins...@googlegroups.com, m...@beckweb.net
only on the master. I don't have any slave nodes yet.
Reply all
Reply to author
Forward
0 new messages