Unicode results in custom scripts


I can’t seem to get unicode characters to return in custom scripts. For example, a simple Python script like the following has a response body of “San Francisco”:

cityName = "San Francisco"
return cityName

However if the string contains a special character, the response body is completely empty. For example:

cityName = "Québec"
return cityName

Is this a bug, or is there some special encoding I need to use?

(Note: The “real” service I wrote returns fairly large JSON-formatted results. I noticed some of my result sets were coming up empty when I knew there should be something. The common thread between each result set was that they contained unicode characters.)