[Zope3-Users] Everything printing as ASCII?
alecmunro at gmail.com
Wed Aug 10 15:53:22 EDT 2005
I think it was using StringIO.
My default python encoding was ASCII, so I changed that, and it ended
up solving my problems, so I haven't looked further into this, but I
assume that while all of the pieces were unicode to start with, Python
was converting some of them to ASCII earlier on.
I believe I'm getting the hang of this encoding thing, but don't quote
me on that.
On 8/10/05, Stephan Richter <srichter at cosmos.phy.tufts.edu> wrote:
> On Tuesday 09 August 2005 14:17, Alec Munro wrote:
> > I've been having some unicode troubles, so I put a print statement in
> > the StringIO class, and it seems that everything is type 'str', rather
> > than unicode. Is this how it is supposed to be?
> cStringIO only supports str, not unicode. Use StringIO instead.
> Stephan Richter
> CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
> Web2k - Web Software Design, Development and Training
More information about the Zope3-users