FTP a kodovani

Moderated forum for Slovak and Czech users

Moderator: Hacker

Post Reply
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

FTP a kodovani

Post by *green »

Zdravim pouzivam TC pro sftp i FTP na linuxovym routeru mam soubory pojmenovane cesky s diakritikou.
pres sftp se diakritika v TC zobrazuje v poradku. Ovsem pres FTP dela cestina problem. Lze nekde nastavit nejake kodovani v TC?
Dekuju
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

Post by *green »

jiz jsem objevil ze se v profilu ftp ptistupu da nastavit pozadovane kodovani. takze pokus zmeni pri FTP na stredoevropske je vse O.K. Proc ovsem to TC nerozpozna sam? Kdyz SFTP to rozpozna a zobrazi spravne? navic pokus zadavam ftp pres url kodovani nelze navolit.

Problem je asi v tom ze nevim kdo mi na ftp nahraje soubory s jakym kodovanim. Nasledne tedy musim prepinat kodovani? Rozumim tomu spravne?nebo je to v necem jinem?
Dekuji za kazdou radu
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ahoj green,
pokus zmeni pri FTP na stredoevropske je vse O.K. Proc ovsem to TC nerozpozna sam? Kdyz SFTP to rozpozna a zobrazi spravne?
Tazko povedat, ak hovoris urcite o SFTP a nie o FTPS, kedze SFTP je v podstate FTP tunelovane cez SSH (a FTPS je FTP s podporou SSL/TLS), tak by to tam malo fungovat asi rovnako.
V inych FTP klientoch je kodovanie rozpoznane spolahlivo automaticky? Ak ano, mozno by sa zislo porovnat vypisy logov, ak nie, tak to asi cez FTP nebude mozne.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

Post by *green »

jojo zkousel jse winscp a vse bylo o.k. Take jsem vyzkousel starou verzi TC 6.51 a ta tez funfuje O.K. tak nevim :(
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

Post by *green »

tak jsem jeste testoval a vpohode je i stable verze 7.04a .
verze 7.5 beta 7 8 zlobi spatne rozpoznavaji kodovani.
tim to asi uzavru a budu pouzivat 7.04.
diky
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ahoj green,
tim to asi uzavru a budu pouzivat 7.04
No, tym moc nepomozes ludom, ktori sa stretnu s rovnakym problemom. Mohol by si aspon poskytnut vypisy z logov TC 7.5, 7.04a a WinSCP? Pripadne aj vypis adresara na FTP (cez Alt-Enter)?

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

Post by *green »

Tak jsem nainstaloval novou release verzi 7.5 a porad nefunguje prikladam vypisy. Problem je v tom ze u beta verzi se vzdy pri autodetekci kodovani zvoli UTF-8.

7.04a - funguje O.K

Connect to: (14.08.2009 9:14:47)
hostname=XXXX
username=XX
startdir=
XXX=XXX
220-************************************************************************
220
USER XXXX
331 Please specify the password.
PASS ****
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
UTF8
211 End
Connect ok!
PWD
257 "/root"
Get directory
TYPE A
200 Switching to ASCII mode.
PORT 127,0,0,1,4,219
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD ftp_moje
250 Directory successfully changed.
PWD
257 "/opt/share/ftp_moje"
Get directory
PORT 127,0,0,1,4,221
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
QUIT
221 Goodbye.


TC 7.5 beta i RC1 release - Nefunguje ceska diakritika (asi pouziva vzdy v defaultu UDF-8)

Connect to: (14.08.2009 9:12:37)
hostname=XXXX
username=XX
startdir=
XXX=XXX
220-********************************************************************************
220
USER XX
331 Please specify the password.
PASS ****
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
UTF8
211 End
OPTS UTF8 ON
200 Always in UTF8 mode.
Connect ok!
PWD
257 "/root"
Složka
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (X,X,X,X,X,X).
LIST
150 Here comes the directory listing.
Stahuje se
Čekáme na server...
226 Directory send OK.
CWD ftp_moje
250 Directory successfully changed.
PWD
257 "/opt/share/ftp_moje"
Složka
PASV
227 Entering Passive Mode (X,X,X,X,X,X).
LIST
150 Here comes the directory listing.
Stahuje se
Čekáme na server...
226 Directory send OK.
QUIT
221 Goodbye.


WINSCP - FUNGUJE O.K


. 2009-08-14 09:29:09.303 --------------------------------------------------------------------------
. 2009-08-14 09:29:09.303 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-08-14 09:29:09.303 Login time: 14. srpen 2009 9:29:09
. 2009-08-14 09:29:09.303 --------------------------------------------------------------------------
. 2009-08-14 09:29:09.303 Session name: xxx FTP
. 2009-08-14 09:29:09.303 Host name: xxx (Port: 21)
. 2009-08-14 09:29:09.303 User name: xx (Password: No, Key file: No)
. 2009-08-14 09:29:09.303 Tunnel: No
. 2009-08-14 09:29:09.303 Transfer Protocol: FTP
. 2009-08-14 09:29:09.303 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-08-14 09:29:09.303 Proxy: none
. 2009-08-14 09:29:09.303 FTP: FTPS: None; Passive: No
. 2009-08-14 09:29:09.303 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-08-14 09:29:09.303 Cache directory changes: Yes, Permanent: Yes
. 2009-08-14 09:29:09.303 DST mode: 1
. 2009-08-14 09:29:09.303 --------------------------------------------------------------------------
. 2009-08-14 09:29:09.350 Password prompt (no password provided or last login attempt failed)
. 2009-08-14 09:29:12.553 Connecting to xxxx ...
. 2009-08-14 09:29:12.569 Connected with xxxx. Waiting for welcome message...
< 2009-08-14 09:29:12.647 220-********************************************************************************
< 2009-08-14 09:29:12.662 220
> 2009-08-14 09:29:12.662 USER xxxx
< 2009-08-14 09:29:12.662 331 Please specify the password.
> 2009-08-14 09:29:12.662 PASS ****
< 2009-08-14 09:29:12.725 230 Login successful.
> 2009-08-14 09:29:12.725 SYST
< 2009-08-14 09:29:12.725 215 UNIX Type: L8
> 2009-08-14 09:29:12.725 FEAT
< 2009-08-14 09:29:12.756 211-Features:
< 2009-08-14 09:29:12.756 EPRT
< 2009-08-14 09:29:12.756 EPSV
< 2009-08-14 09:29:12.756 MDTM
< 2009-08-14 09:29:12.756 PASV
< 2009-08-14 09:29:12.756 REST STREAM
< 2009-08-14 09:29:12.756 SIZE
< 2009-08-14 09:29:12.756 TVFS
< 2009-08-14 09:29:12.756 UTF8
< 2009-08-14 09:29:12.756 211 End
> 2009-08-14 09:29:12.756 OPTS UTF8 ON
< 2009-08-14 09:29:12.772 200 Always in UTF8 mode.
. 2009-08-14 09:29:12.772 Connected
. 2009-08-14 09:29:12.772 --------------------------------------------------------------------------
. 2009-08-14 09:29:12.772 Using FTP protocol.
. 2009-08-14 09:29:12.772 Doing startup conversation with host.
> 2009-08-14 09:29:12.772 PWD
< 2009-08-14 09:29:12.787 257 "/root"
. 2009-08-14 09:29:12.787 Getting current directory name.
. 2009-08-14 09:29:12.787 Retrieving directory listing...
> 2009-08-14 09:29:12.787 TYPE A
< 2009-08-14 09:29:12.787 200 Switching to ASCII mode.
> 2009-08-14 09:29:12.803 PORT xxx,xxx,x,xx,7,159
< 2009-08-14 09:29:12.803 200 PORT command successful. Consider using PASV.
> 2009-08-14 09:29:12.803 LIST -a
< 2009-08-14 09:29:12.834 150 Here comes the directory listing.
< 2009-08-14 09:29:12.866 226 Directory send OK.
. 2009-08-14 09:29:12.866 Directory listing successful
. 2009-08-14 09:29:12.866 Reading symlink "ftp_moje".
. 2009-08-14 09:29:12.866 Reading symlink "ftp_ostatni".
. 2009-08-14 09:29:12.866 Reading symlink "opt".
. 2009-08-14 09:29:12.866 Reading symlink "sbin".
. 2009-08-14 09:29:12.866 Reading symlink "www".
. 2009-08-14 09:29:12.866 Startup conversation with host finished.
. 2009-08-14 09:29:15.381 Cached directory change via "ftp_moje" to "/opt/share/ftp_moje".
. 2009-08-14 09:29:15.381 Getting current directory name.
. 2009-08-14 09:29:15.381 Retrieving directory listing...
> 2009-08-14 09:29:15.381 CWD /opt/share/ftp_moje/
< 2009-08-14 09:29:15.397 250 Directory successfully changed.
> 2009-08-14 09:29:15.397 PWD
< 2009-08-14 09:29:15.413 257 "/opt/share/ftp_moje"
> 2009-08-14 09:29:15.413 TYPE A
< 2009-08-14 09:29:15.413 200 Switching to ASCII mode.
> 2009-08-14 09:29:15.413 PORT xx,xx,x,xx,7,161
< 2009-08-14 09:29:15.428 200 PORT command successful. Consider using PASV.
> 2009-08-14 09:29:15.428 LIST -a
< 2009-08-14 09:29:15.460 150 Here comes the directory listing.
< 2009-08-14 09:29:15.475 226 Directory send OK.
. 2009-08-14 09:29:15.475 Directory listing successful
. 2009-08-14 09:29:24.867 Disconnected from server
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

green,
Popytal som sa tuna - Disable OPTS UTF8 ON by default.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

green,
Tak, a mame odpoved:
ghisler(Author) wrote:So apparently the server was always in UTF-8 mode, but TC 7 didn't support that and upload the file names in Ansi mode. Therefore they now have wrong names. He needs to rename these files manually, or re-upload them.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
green
Junior Member
Junior Member
Posts: 8
Joined: 2009-06-03, 16:09 UTC

Post by *green »

Diky to tedy znamena ze pokud se nekdo na toto FTP prihlasi pres stary TC a uploadne mi tam soubory s ceskymi znaky me se to nasledne v 7.5 TC zobrazi spatne pri automatickem kodovani a musim prepnout na jiny nez UTF-8?

rozumim tomu spravne?diky
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ahoj green,
Neviem, ci tomu rozumies spravne, ale rozumiem tomu rovnako. :)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply