3

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?

scrutari
  • 1,378
  • 2
  • 17
  • 33
user3571631
  • 821
  • 3
  • 8
  • 19
  • You type this verbatim into google for several answers, many on SO. – pvg Mar 29 '17 at 22:37
  • This has nothing to do with Python. It's a question about the differences between UCS2 and UCS4, which can be found with a simple Google search. All Python does is use them, just like any other language. – Ken White Mar 29 '17 at 22:50
  • @KenWhite it comes up in python2.x since the internal representation can limit what a particularly compiled interpreter can represent. But also high on google hits. – pvg Mar 29 '17 at 23:11

1 Answers1

0

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.

scrutari
  • 1,378
  • 2
  • 17
  • 33