Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-20471

[CX] String encoding issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • CBAS DP
    • analytics
    • None
    • Untriaged
    • Unknown
    • CX Sprint 20, CX Sprint 29, CX Sprint 30, CX Sprint 31, CX Sprint 32, CX Sprint 33, CX Sprint 34, CX Sprint 36, CX Sprint 37, CX Sprint 38, CX Sprint 39, CX Sprint 40, CX Sprint 41, CX Sprint 42, CX Sprint 44, CX Sprint 45, CX Sprint 46, CX Sprint 95

    Description

      To repro this:

      create dataverse test if not exists;
      use test;
       
      create type DatasetType1 as open {
          tweet_id:int64
      };
       
      create dataset tweetDataset(DatasetType1)
      primary key tweet_id
       
      insert into tweetDataset
      {
            "content": "عافيتك يالله😢😢💉💉",
            "tweet_id": 1
      }
       
      select * from tweetDataset
      where tweet_id=1;
      

      I get:

      "results": [

      { "tweet_id": 1, "content": "عافيتك يالله��������" }

      ]

      If I put that JSON object into a CB bucket, here is what N1QL returns for the same query:
      "results": [

      { "content": "عافيتك يالله😢😢💉💉", "tweet_id": 1 }

      ]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            murtadha.hubail Murtadha Hubail
            yingyi Yingyi Bu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h Original Estimate - 4h
                4h
                Remaining:
                Time Spent - 3h Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - 3h Remaining Estimate - 6h
                3h

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty