Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7698445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:14:39+00:00 2026-05-31T22:14:39+00:00

Now I use elixir with my mysql database and the redispy with redis and

  • 0

Now I use elixir with my mysql database and the redispy with redis and i select UTF-8 at all the place.
I wanna to get some data writing in chinese like {'Info':‘8折’,'Name':'家乐福'} but what i got is like this:

{'Info': u'8\u6298', 'Name': u'\u5bb6\u4e50\u798f'}

and after i store this dict to redis and get it out by redispy it becomes:

{"Info": "8\u6298", "Name": "\u5bb6\u4e50\u798f"}

I know if i add u' before 8\u6298 and print it it will shou me "8折" but is there a function or another solution to this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:14:40+00:00Added an answer on May 31, 2026 at 10:14 pm

    The latter looks like json, try decoding it first:

    import json
    
    resp = '{"Info": "8\u6298", "Name": "\u5bb6\u4e50\u798f"}'
    print json.loads(resp)
    
    ## {u'Info': u'8\u6298', u'Name': u'\u5bb6\u4e50\u798f'}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are porting an app which formerly used Openbase 7 to now use MySQL
When I use DateTime.Now I get the date and time from the server point
Some websites now use a JavaScript service from Tynt that appends text to copied
I came across some code written in VS7.1 and now I'm trying to get
In Objective C you can now use @property and @synthesize to auto generate get
I switched to the dvorak keyboard layout about a year ago. I now use
Right now i use iText to generate a pdf automatically. And my problem is
I'm a PHP developer and now I use Notepad++ for code editing, but lately
After a few harsh lessons I now always use OrdinalIgnoreCase when comparing Strings in
Text gets accumulates piecemeal before being sent to client. Now we use own class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.