[Pyobjc-dev] non-default encoding raising an exception over the bridge
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-11-22 03:51:15
|
I think that most of the time, people would be happier if this didn't raise an exception (use the unicode replace instead). If the python user doesn't know the encoding of the text, and it's not default encoding, the developer probably doesn't have anything better than replace to use on the string. The exception is a nuisance and can be hard to track down. Perhaps this could be a module level variable in objc, so that a person could toggle it to be strict if they wanted it that way, but have the default as replace? -bob |