0

I am trying to pull data from salesforce however facing some issues while reading ascii characters.For example Original value in salesforce db

 6 articles, plus 2 pieces of content labeled “expert answers”

Value i get in python

 6 articles, plus 2 pieces of content labeled \u201cexpert answers\u201d

Seems like double quotes are converted to ascii.When i try to wrap above string in python str() method it throws below error

UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 45: ordinal not in range(128)

Is there any way i can convert this ascii to original value to save it in my db?

hampi2017
  • 701
  • 2
  • 13
  • 33

0 Answers0