0

My python function.json returns this:

[{"id": "187", "label": "H\xc3\xa1bitos"}]

The label is an encoding of "Hábitos",

How can I get the proper label in Javascript?

1

1 Answer 1

0

This is a proper UTF8 string and not some kind of "python encoding". You just need tn use UTF8 on your page and it will work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.