Python unicode - UCS2 vs UCS4

1.7k Views Asked by At

I came across a scenario where I have to choose between UCS-2 and UCS-4. What is the significance of UCS-2 vs UCS-4 related to Python? How are they different?

1

There are 1 best solutions below

0
On

As for Python, UCS-2 and UCS-4 define largest supported code point for a Unicode characters. See some python related details here. In briefs, when Python is configured and built with UCS-4 it can support larger set of Unicode characters.