Question about WodSSH Encoding property - WeOnlyDo Discussion board

Question about WodSSH Encoding property (wodSSH / wodSSH.NET)

by kevin, Monday, January 04, 2016, 12:14 (3028 days ago)

From link: http://www.weonlydo.com/SSH/Help/wodSSH-Object-Encoding-property.html
I learnt that wodSSH support encoding property for different charsets.
All I want to do is specified wodSSH using charset : UTF-8.
My project environment: MVS VS2008, VC
I searched WodSSH VC samples, found nothing about Encoding, but found a property named: setlanguage.
So, My question is: is it the option for charset?
Thanks.

Question about WodSSH Encoding property

by Jasmine, Monday, January 04, 2016, 12:23 (3028 days ago) @ kevin

Hi Kevin.

Samples are based on older version of wodSSH when that property did not exist. You can easily add it's declaration. In sample's folder open wodSSH.h and below 'GetLanguage' and 'SetLanguage' lines add these:

long GetEncoding();
void SetEncoding(long nNewValue);

and in wodSSH.cpp at the end add implementations:

long IwodSSHCom::GetEncoding()
{
 long result;
 InvokeHelper(0x37, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
 return result;
}

void IwodSSHCom::SetEncoding(long nNewValue)
{
 static BYTE parms[] =
  VTS_I4;
 InvokeHelper(0x37, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  nNewValue);
}

and that should make this property available.

I hope this helps!
Jasmine.

Question about WodSSH Encoding property

by kevin, Monday, January 04, 2016, 12:46 (3028 days ago) @ Jasmine

Thanks. Let me try this:-)