Python から Windows コンソールに出力できる Unicode 文字はどれですか?
次のコード
for code in range(1114112):
print(chr(code), end=",")
エラーを含む印象的な結果が得られません。
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 0: surrogates not allowed
それでも、str
請求値のドキュメント0x110000
は許可されます。
より多くの文字を表示する方法はありますか?