[I18n-sig] Unicode surrogates: just say no!

Paul Prescod paulp@ActiveState.com
Thu, 28 Jun 2001 11:59:29 -0700


Tom Emerson wrote:
> 
>...
>   Used to encode
> historical documents for searching and the like. While display is
> important, I strongly suggest that the ability to display them does
> not outweigh the ability to work with strings containing them.

The ability to work with them is not at issue. The question is whether
you can use them in string literals. One side of the argument says that
"working with them" in narrow Python builds will be extremely difficult,
so allowing them in literals and as inputs to unichr doesn't help much.
The other side says that at least allowing them in literals makes them
available in code in a straightforwards way. "Working with them" will
still require understanding of surrogates. (in narrow Python builds!)
-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook