Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

A few days ago I had a problem with an application running on Tomcat, it wasn't able to find files in the filesystem containing accents in the name (like, for example, "reportsandonà.pdf"). I discovered that it was a "locale" problem and i solved this by changing the locale from en_GB.UTF-8 to it_IT.UTF-8

Now i'm facing another problem. Whenever i restart Tomcat with this command: "service tomcat restart" the problem is again there, and i have to restart the whole machine in order to fix it.

I'm using tomcat 7 on Centos 6 64 bit, and this is the start/stop/restart script:

# description: Tomcat Start Stop Restart
# processname: tomcat
# chkconfig: 234 20 80
export JAVA_HOME
export PATH

case $1 in
sh $CATALINA_HOME/bin/startup.sh
sh $CATALINA_HOME/bin/shutdown.sh
sh $CATALINA_HOME/bin/shutdown.sh
sh $CATALINA_HOME/bin/startup.sh
exit 0
share|improve this question

1 Answer 1

up vote 0 down vote accepted

Try adding export LANG=it_IT.UTF-8 to your start/stop script.

share|improve this answer
It worked, thanks –  valepu Aug 8 '12 at 10:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.