Hello,
I've got an encoding problem with my java application under a Mandriva
10.1.
Specs :
- java sdk 1.4.2_08
- Choosed encoding ISO-8859-1
- Mandriva LANG variable is FR
The application works with Tomcat and a servlet that makes the bridge
to a database.
The facts:
When i start tomcat and the servlet on the boot time (i've made a link
from my script to /etc/rc5.d/), the accents are replaced by ?.
After that, if i stop/start the services, it works very good.
NB: I run tomcat and the servlet with the java param
-Dfile.encoding="ISO-8859-1"
It seems to me that at boot time, java is not starting my app with the
correct encoding.
Does anyone have an idea ?
Thanks for your help.
Fred
fcurvat@gmail.com - 27 Sep 2005 15:12 GMT
Hi,
Did i asked my question in the wrong forum ?
Someone have an idea of where i could find some help.
Thanks
Fred
fcurvat@gmail.com - 25 Oct 2005 09:36 GMT
The problem is solved.
You can contact me if you have the same problem.
Roedy Green - 25 Oct 2005 10:01 GMT
>The problem is solved.
>You can contact me if you have the same problem.
Would you like to give a hint?

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
fcurvat@gmail.com - 25 Oct 2005 12:30 GMT
At boot, the environnment variables are not set.
So at the beginning of script, we set the langage (in our case fr_FR)
export LC_ALL=fr_FR
export LANG=fr_FR
export LANGUAGE=fr_FR
That's all.
Roedy Green - 25 Oct 2005 13:07 GMT
>At boot, the environnment variables are not set.
>So at the beginning of script, we set the langage (in our case fr_FR)
[quoted text clipped - 4 lines]
>
>That's all.
thanks. I have added the tip to
http://mindprod.com/jgloss/environment.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.