The API call succeeds, but writing emoji or non-Latin text to my terminal crashes.
Why this happens
The Windows console or a redirected output stream may be using a legacy code page that cannot encode the response text.
Answer 1: Reconfigure Python’s standard output as UTF-8
import sys
sys.stdout.reconfigure(encoding="utf-8")
print("🌍")
