Menu

hessiancpp with UTF-8 support

2009-04-25
2013-04-11
  • Craig Flockhart

    Craig Flockhart - 2009-04-25

    I've modified the code to parse UTF-8 into wchar_t and std::wstring if anyone is interested in a patch. The current hessiancpp code threw exceptions for me with UTF-8 data, as the parsing code looks like it's copied from Java, where char is natively "wide", unlike C++.

    I've also implemented a SWIG-based interface with Perl 5 based on hessiancpp and I can publish that if there's any interest. I implemented it this way because the Perl Hessian::Client module is not currently ready and using the Java Hessian client from Perl's Inline::Java module is OK (first class support for version 2 Hessian protocol is the advantage), but performed poorly in some cases for our Perl web application under load because of the RMI network calls.

     
    • Jose Quinteiro

      Jose Quinteiro - 2009-06-12

      I say submit your patches.  The UTF-8 patch looks especially useful.  I haven't had great luck with my latest patch, but my Sourceforge email did not work until very recently.  Maybe rapopescu has also not been receiving emails from Sourceforge until recently.

       
    • sunning jp

      sunning jp - 2009-07-26

      This thing is so wonderful,please publish it.  Now ,the project I undertake needs UTP-8 support. I am desired for it.

       
  • Anonymous

    Anonymous - 2010-10-05

    The existing UTF-8 code is also broken with respect to 8 bit characters too.  The method string_input_stream::read needs to use an unsigned char for the variable "c" in order for the existing code to work properly.  Otherwise, it returns a negative integer and the code in hessian_input::read_string_impl will fail to process the multi-byte encodings correctly.

     
  • Radu-Adrian Popescu

    The current code in CVS works correctly. It also implements string and binary chunking.

     
  • Radu-Adrian Popescu

    I'm sorry for the delays, and thanks to everyone for their comments and contributions!
    Indeed the forum updates and emails were going to an email address I no longer had access to.

     
  • Radu-Adrian Popescu

    Released as 1.1.0

     

Log in to post a comment.