Skip to content

Commit

Permalink
Use PyUnicode_AsEncodedString
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Apr 18, 2022
1 parent 4ae8a0b commit 70e9085
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/objToJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,6 @@ static const char *_PyUnicodeToChars(PyObject *obj, int *_outLen)
}
/*#endif*/
newObj = PyUnicode_AsEncodedString(obj, "utf-8", "surrogatepass");
//newObj = PyUnicode_AsUTF8String(obj);
if(!newObj)
{
*_outLen = 0;
Expand Down

0 comments on commit 70e9085

Please sign in to comment.