Ed Leafe wrote:
> On Feb 24, 2009, at 8:50 AM, Paul McNett wrote:
> 
>> Let's do this:
>>
>>   reload(sys)
>>   sys.setdefaultencoding(dabo.defaultEncoding)
>>   del sys.setdefaultencoding
>>
>> And then tell people that experience trouble to simply:
>>
>>   dabo.defaultEncoding = "whatever"
>>
>> immediately after importing dabo.
> 
>       That's what I was thinking. I am not very confident in my ability to  
> test this, since being an English/ASCII guy, I miss a lot of the  
> unicode gotchas. If some of our users who employ more extensive  
> character sets could try this out and let us know their results, I'd  
> be a lot more confident.
> 
>       Also, where exactly would we put this at the framework level? We can  
> add it to the main program for wizard and quickStart apps, but someone  
> who does everything by hand will also have to know to add this to  
> their code.

No it needs to go in the framework, not generated code. But the place I'd want 
to put 
it (dabo.__init__) won't work out of the box because that wouldn't give people 
a 
chance to override the default.

Perhaps this is a bad idea. Setting the default encoding should be Python's or 
the 
user's job, not Dabo's.

Hmmm.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to