UTF8String::size() returns wrong size in bytes

Options
It returns wrong size in bytes when the string contains full-width CJK characters (for example, "水風火가나다あいう"). It get halved in length thus truncated short of original string. It loses 1 character from its tail per 1 CJK characters.

I've done days of debugging and stuck here, and wondering if there's something buggy in C++ library's implementation or something. I'd appreciate if anybody could help me with this.

Comments

  • Kaiserludi
    Kaiserludi admin
    edited December 2015
    Options
    Hi @Enigmato.

    Thank you for reporting this.
    This has indeed been a bug that got introduced with 4.0.4.0 and will be fixed with 4.0.5.0.
  • Enigmato
    Options
    Thanks for confirming.
    I'll note the team not to use CJK characters as string payload until 4.0.5.0.