We use the ssh lib together with a small windows xp programm.
We connect to a ubuntu server with some problems.
To me it look like the ssh lib uses iso8859-1 encoding but the server is working on utf-8
is there a posibillity to tell the ssh client to use utf?
utf-8 encoding
DelphiXE2 Utf-8 Convert
Hello.
I'm Japanese.
Has created a console application that displays the results by running the command on TScSSHShell.
The server on Ubuntu Linux, UTF-8 character coding system. The client is Windows7 64bit.
I run the code as shown below in DelphiXE2. (Win32)
RES: = ScSSHShell1.ExecuteCommand (CMD);
Writeln (UTF8ToAnsi(RES));
Then, the
合?E52
drwxrwxr-x 8 saito saito 4096 2010-07-13 01:31 android-sdk-linux_86
drwxr-xr-x 2 saito saito 4096 2010-02-27 00:03 bin
-rw-r--r-- 1 saito saito 167 2010-01-23 23:56 examples.desktop
drwxr-xr-x 18 saito saito 4096 2010-02-27 07:27 mydroid
drwxr-xr-x 4 saito saito 4096 2010-07-13 02:05 workspace
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ダウンローチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 チE??プレーチE
drwxr-xr-x 2 saito saito 4096 2011-05-14 10:56 チE??クトッチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ドキュメンチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ビデオ
drwxr-xr-x 3 saito saito 4096 2010-07-13 00:41 ピクチャ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ミュージチE??
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 公?E
However, if you run the same code Delphi2007,
合計 52
drwxrwxr-x 8 saito saito 4096 2010-07-13 01:31 android-sdk-linux_86
drwxr-xr-x 2 saito saito 4096 2010-02-27 00:03 bin
-rw-r--r-- 1 saito saito 167 2010-01-23 23:56 examples.desktop
drwxr-xr-x 18 saito saito 4096 2010-02-27 07:27 mydroid
drwxr-xr-x 4 saito saito 4096 2010-07-13 02:05 workspace
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ダウンロード
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 テンプレート
drwxr-xr-x 2 saito saito 4096 2011-05-14 10:56 デスクトップ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ドキュメント
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ビデオ
drwxr-xr-x 3 saito saito 4096 2010-07-13 00:41 ピクチャ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ミュージック
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 公開
This result is more correct.
Are there any measures in DelphiXE2?
I'm Japanese.
Has created a console application that displays the results by running the command on TScSSHShell.
The server on Ubuntu Linux, UTF-8 character coding system. The client is Windows7 64bit.
I run the code as shown below in DelphiXE2. (Win32)
RES: = ScSSHShell1.ExecuteCommand (CMD);
Writeln (UTF8ToAnsi(RES));
Then, the
合?E52
drwxrwxr-x 8 saito saito 4096 2010-07-13 01:31 android-sdk-linux_86
drwxr-xr-x 2 saito saito 4096 2010-02-27 00:03 bin
-rw-r--r-- 1 saito saito 167 2010-01-23 23:56 examples.desktop
drwxr-xr-x 18 saito saito 4096 2010-02-27 07:27 mydroid
drwxr-xr-x 4 saito saito 4096 2010-07-13 02:05 workspace
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ダウンローチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 チE??プレーチE
drwxr-xr-x 2 saito saito 4096 2011-05-14 10:56 チE??クトッチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ドキュメンチE
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ビデオ
drwxr-xr-x 3 saito saito 4096 2010-07-13 00:41 ピクチャ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ミュージチE??
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 公?E
However, if you run the same code Delphi2007,
合計 52
drwxrwxr-x 8 saito saito 4096 2010-07-13 01:31 android-sdk-linux_86
drwxr-xr-x 2 saito saito 4096 2010-02-27 00:03 bin
-rw-r--r-- 1 saito saito 167 2010-01-23 23:56 examples.desktop
drwxr-xr-x 18 saito saito 4096 2010-02-27 07:27 mydroid
drwxr-xr-x 4 saito saito 4096 2010-07-13 02:05 workspace
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ダウンロード
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 テンプレート
drwxr-xr-x 2 saito saito 4096 2011-05-14 10:56 デスクトップ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ドキュメント
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ビデオ
drwxr-xr-x 3 saito saito 4096 2010-07-13 00:41 ピクチャ
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 ミュージック
drwxr-xr-x 2 saito saito 4096 2010-01-23 23:59 公開
This result is more correct.
Are there any measures in DelphiXE2?