login about faq

Here is my sample code:

int main( int argc, char* argv[] ) {

    CkSocket sock;
    bool success;
    success = sock.UnlockComponent( "Anything for 30-day trial" );
    if (success != true) {
        std::cout << sock.lastErrorText() << "\r\n";
        return 1;
    }

    success = sock.Connect("localhost", 23, false, 20000);
    Sleep( 1000 );
    sock.put_StringCharset( "ansi" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "utf-8" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "unicode" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "unicodefffe" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "ansi" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "utf-32" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
    sock.put_StringCharset( "utf-32be" );
    sock.SendString( "abcd" );
    Sleep( 1000 );
}

The messages received by the server (running echotool.exe from https://github.com/PavelBansky/EchoTool) are

Client 127.0.0.1:54760 accepted at 4:07:08 PM
4:07:09 PM received [abcd]
4:07:10 PM received [abcd]
4:07:11 PM received [a b c d ]
4:07:12 PM received [ a b c d]
4:07:13 PM received [abcd]
4:07:14 PM received [a   b   c   d   ]
4:07:15 PM received [a   b   c   d   ]

These all look fine, except the last two are the same. The last one (utf-32be) should be

[   a   b   c   d]

I'm using I'm using v9.5.0.66 (x86-vc12) from 2/2/2017 to test.

asked Feb 08 at 19:22

mgrivich's gravatar image

mgrivich
182


link

answered Feb 08 at 20:24

chilkat's gravatar image

chilkat ♦♦
12.8k317366477

I tested this version, and it has not fixed the issue. The behavior has not changed.

(Feb 09 at 13:19) mgrivich

Today's prerelease version has fixed the issue. Thanks.

(Feb 16 at 14:05) mgrivich

Interesting... I did some digging and found a discrepancy w/ code pages (12000 vs 65005). I'm making a fix and will send you a new build ASAP..

link

answered Feb 08 at 19:36

chilkat's gravatar image

chilkat ♦♦
12.8k317366477

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×86
×81
×20

Asked: Feb 08 at 19:22

Seen: 407 times

Last updated: Feb 16 at 14:05

powered by OSQA