From: Kern S. <ke...@si...> - 2005-04-28 19:07:21
|
Hello, Thank you for the annotated screen shots. It sure makes understanding the=20 problem a lot easier :-) Well, it is a good sign that the error message is printing correctly in=20 Chinese. My best guess at this point is that pico or your editing program= =20 has not correctly entered the Chinese characters, otherwise they should pri= nt=20 correctly. One thing that you can do is to start wx-console and then enter the followi= ng=20 command: show filesets This will display the contents of your FileSet as they are internally store= d. =20 If the Chinese character print correctly, then we have a problem elsewhere= =20 (we need to add more UTF-8 to Unicode translations). If they print=20 incorrectly, then they are most likely (not 100% sure) not stored correctly= =20 in the bacula-dir.conf file, and you should try some other editors such as = vi=20 or emacs to see if you can correct it. On Thursday 28 April 2005 19:04, Adamson Huang wrote: > Dear Kern, > > Thank you for your information and patience. I typed the Chinese folder > name =E6=A1=8C=E9=9D=A2 (desktop) in Windows Notepad and saved it to file= =2Etxt using UTF-8 > format, (see attachment utf8.1.gif) then FTPed it to my FreeBSD server and > imported to bacula-dir.conf with pico. (attachment utf8.2.gif) I restart= ed > bacula and this time I did not get any error messages. I was so excited > that I ran a backup job right away. Nevertheless, I saw an error message > after a while on the bacula console, saying the folder "desktop in Chines= e" > was not found. (attachment utf8.3.gif) As a result, that folder was not > backed up. > > I tried to save the Chinese folder =E6=A1=8C=E9=9D=A2 with Windows Notepa= d in unicode > encoding (the default is ANSI) too, but I got an error message restarting > bacula. I have ever written a number of Chinese phrases (ANSI encoding) > into the Postfix junk mail filtering files using similar methods; Those > filtering rules work fine for me. > > I know little about programming, and I don't know where exactly my problem > lies in. > > Thanks again for your work. > > Regards. > > Adamson Huang > > > On Thu, 28 Apr 2005 14:14:53 +0200, Kern Sibbald wrote > > > On Thursday 28 April 2005 12:33, Adamson Huang wrote: > > > Hello, > > > > > > I didn't notice the devel list accepts no attachments. I hope the > > > attached .gif file help explain my problem. > > > > > > Regards. > > > > > > Adamson Huang > > > > OK, it appears that you are editing the bacula-dir.conf file from a > > Windows workstation and possibly writing the output in Unicode. > > What you need to do is to write the file in UTF-8 format. I'm not > > sure that you can do so from a Windows workstation, but you can > > surely do it directly from a properly configured Linux console. > > I've never used any Chinese characters, so I am not sure how to do > > so, but I suspect that you do it by setting the appropriate value in > > the LANG environment variable -- at least that is how I am able to > > deal with European accented character sets. > > > > You will still need the Unicode enabled Win32 FD if you want to > > backup files with Unicode names. However, the version I sent you > > this morning does not properly handle Unicode directory names. I'll > > send you a newer version later today. > > > > -- > > Best regards, > > > > Kern > > > > ("> > > /\ > > V_V > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Tell us your software development > > plans! Take this survey and enter to win a one-year sub to > > SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey > > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=3D105hix > > _______________________________________________ > > Bacula-devel mailing list > > Bac...@li... > > https://lists.sourceforge.net/lists/listinfo/bacula-devel > > -- > polycastle.3322.org =2D-=20 Best regards, Kern ("> /\ V_V |