Page 1 of 1

utf-8 encoding

Posted: Wed 28 Sep 2011 09:21
by jumahael
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?

Posted: Fri 30 Sep 2011 08:53
by Dimon
I cannot reproduce the problem.
SecureBridge transmits a username and password to an SSH server in UTF8 charset.
Can you provide access to your SSH server to investigate the problem?

DelphiXE2 Utf-8 Convert

Posted: Sun 11 Dec 2011 08:31
by saito123
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?

Posted: Fri 16 Dec 2011 10:11
by Dimon
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next SecureBridge build.