View previous topic :: View next topic |
Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Sep 28, 2006 9:19 am Post subject: Ftp encoding issues with different user accounts |
|
|
User Support Request:
First, I started the scheduler with a start-script in /etc/init.d, so the java process was running with user root.
<script>
cd /opt/Hitek7
java -Xrs -cp .:help:jh.jar:mail.jar:activation.jar:net.jar:jakoro.jar:maverick-all.jar:bsh.jar:hitek7.jar com.hitek.engine.Engine &
The problem was that root’s language setting was set to POSIX and files transferred with FTP had wrong filenames (äöü).
Next I installed iso8859-15 locales to the system, added a new user with the home directory as the installation directory of jasftp. Now I start the scheduler still from init but the script makes a “change user”.
<script>
su - ftpadmin -c "java -Xrs -cp .:help:jh.jar:mail.jar:activation.jar:net.jar:jakoro.jar:maverick-all.jar:bsh.jar:hitek7.jar com.hitek.engine.Engine &"
Now it is working. But is this the correct way? Have you any best practices, tipps, howtos about encoding-problems. |
|
Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Sep 28, 2006 9:20 am Post subject: |
|
|
Unfortunately we have no experience with encoding problems on linux and different user accounts. However, your email on this topic will be usefull to other users and I have added your message to our forum. Hopefully, someone with more expertise on linux will answer this. |
|
Back to top |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Thu Oct 05, 2006 8:52 am Post subject: |
|
|
Actually, I think this issue could be due to the unresolved Ftp profile encoding bug. We have fixed this issue in 7.15 to be released by Oct 8th.
So, update to 7.15 when it is released. Then in your Ftp profile, Connection tab, select UTF-8 for the encoding. |
|
Back to top |
|
 |
|