Should I use Unicode string by default?

前端 未结 6 816
星月不相逢
星月不相逢 2021-02-07 03:38

Is it considered as a good practice to pick Unicode string over regular string when coding in Python? I mainly work on the Windows platform, where most of the string types are U

6条回答
  •  一向
    一向 (楼主)
    2021-02-07 04:01

    Additional to Mihails comment I would say: Use Unicode, since it is the future. In Python 3.0, Non-Unicode will be gone, and as much I know, all the "U"-Prefixes will make trouble, since they are also gone.

提交回复
热议问题