Skip to content
Advertisement

Converting utf-8 encoded to string from user input in python

JavaScript

The first one can print out the result correctly
While the second one will just print out the string I entered

output:

JavaScript

Advertisement

Answer

The transformation is a bit tricky:

JavaScript

Follow the transformation:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement