Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

[LINUX]Encoding problem when my application is started at boot

Thread view: 
fcurvat@gmail.com - 26 Sep 2005 12:30 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.