Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Problem displaying Japanese chars on Linux



Maarten Janson wrote:

> The problem is that when the Agent is started during boot of the
> Japanese Linux machine and you point the browser on a Japanese windows
> machine to it you see questionmarks. If I then stop the Agent on the
> Linux machine and restart then the client displays proper Japanese
> characters. I did some debugging and wrote a small java program
> (test_resource.java) to display this behaviour, I have listed
> test_resource.java below, together with the 2 properties files.
>
> If you run test_resource during boot (create S99Test in /etc/rc5.d and
> have S99Test to run test_resource and redirect output to a file) then
> you will see that the correct properties file is loaded and that the
> english chars in the resource string appear fine but the japanese
> chars appear as ????? If you then run test_resource from an xterm
> window the the japanese chars display fine as well.

As someone already pointed it out before, you most probably need to set
the locale before you start the Agent. Make a single shell script which
does `export LC_ALL=ja_JP;  java classname.for.Agent` and call that from
your initscripts.
As you are using a Japanese distribution, the Japanese locale is
probably set at a later stage that's why it works from a terminal.

> In test_resource I set the default Locale in order to make sure it is
> set correctly (see bug ID4127375)

Most probably this is not enough.


ps: I don't mind html mails but afaik some people on the list do, so if
it's possible to set your M$ outlook to send plain text mails that would
be great.

--
B0Ti.

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links