ValueError: unsupported format character ‘S’ (0×53) at index 14

Answer, you’ll want to use a lowercase “s” in your string formatting expression:
For example do:
print 'Hi there Mr. %s' % 'test'

and not:
print 'Hi there Mr. %S' % 'test'

Background:
I’m sure this is obvious to everyone but sometimes when you forget to turn off your caps lock key and you don’t really understand unicode and automatically blame all of your errors on that, you may well be stuck on this error for a good bit of time before you notice the case of the %S ;-)

Comments are closed.