I have a question about the »Bacula Backup System« module for Webmin. I use
bacula 3.0.2 and Webmin 1.490. I have problem restoring files using this module
(restoring files using bconsole works great). The problem is that java applet
(»threechooser.class«) doesn't correctly display slovenian characters
(č??Č??). If I use any browser on linux (all environments are set to
UTF-8), I can normally see slovenian characters and do a restore. But, if I use
any browser on windows XP system (UFT-16, I think), the java applet shows
slovenian characters incorrectly (wrong character encoding). I am really
surpised that this applet is not displaying UTF-8 characters correctly, since
bacula is saving all filenames in UTF-8.
In effort to find a solution to this problem ? after unsuccessful googling ? I
first changed »Character set for HTML pages« in language options of Webmin to
UTF-8. Then I have added »-Dfile.encoding=UTF-8« to »Java Runtime Parameters«.
Nothing helped. Then I made a correction to "treechooser.cgi" and added:
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
</head>
<body>
because they were obviously missing. That didn't help either. I thoght it would
because this code in threechooser.java made me think it would:
URL u = new
URL(getDocumentBase(), url);
URLConnection uc =
u.openConnection();
set_cookie(uc);
String charset =
get_charset(uc.getContentType());
Then I tried to change
String charset = get_charset(uc.getContentType());
to
String charset = get_charset('UTF-8');
but I didn't have enough knowledge to compile it (required java classes).
I really do not understand why this characters are correctly displayed under
linux and incorrectly under windows. As it would use OS environment variables.
Maybe there is some other java parameter to set? Maybe some perl CGI uses wrong
character set? Or maybe there is some javascript (Ajax?) posting filenames tho
this applet?
Does anyone have the same problem? Does anyone have a solution for this? Can
anyone at least explain how java applet »threechooser.class« is obtaining
filenames?
Thanks in advance.
Lado
+----------------------------------------------------------------------
|This was sent by lado.langof AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|