Skip to content

Facing Issue while Decoding in C++. #82

Open

Description

@kishans12

The Data i am getting from Exchange is like this ex: "Ýÿ”20181009-06:49:09.66±±�jÏ€€€‚_��À€ôCOCUDAKL20DEC201¸2972³ø��2?IÁ€€€€€€€s•€€€€€€€€€€“ö€‚� "

Now as mentioned in Example Hello World MFast Converted in Hex using Managed C++ Code "\\xC3\\x9D\\xC3\\xBF\\xE2\\x80\\x9D\\x32\\x30\\x31\\x38\\x31\\x30\\x30\\x39\\x2D\\x30\\x36\\x3A\\x34\\x39\\x3A\\x30\\x39\\x2E\\x36\\x36\\xC2\\xB1\\xC2\\xB1\\x1F\\x6A\\xC3\\x8F\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x80\\x9A\\x5F\\x7F\\x7F\\xC3\\x80\\xE2\\x82\\xAC\\xC3\\xB4\\x43\\x4F\\x43\\x55\\x44\\x41\\x4B\\x4C\\x32\\x30\\x44\\x45\\x43\\x32\\x30\\x31\\xC2\\xB8\\x32\\x39\\x37\\x32\\xC2\\xB3\\xC3\\xB8\\x05\\x08\\x32\\x3F\\x49\\xC3\\x81\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\x73\\xE2\\x80\\xA2\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x82\\xAC\\xE2\\x80\\x9C\\xC3\\xB6\\xE2\\x82\\xAC\\xE2\\x80\\x9A\\x03\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x82\\xAC"

Double backward slash for Escape Purpose in C++ which is Compulsory. Now decoder.decode fails when I pass this hex message but when i hard code it in String with single backward slash it works perfectly fine.

I will be great if you suggest solution

Exception Caught:
Throw in function unsigned char __thiscall mfast::fast_istreambuf::sbumpc(void)
Dynamic exception type: class boost::exception_detail::clone_impl
std::exception::what: Unknown exception
[struct mfast::tag_error_code *] = Buffer underflow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions