On Sat, Dec 6, 2008 at 1:36 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:

>
>   You can see how this works better than the latin1 code in a Python shell:
>
> >>> x = 'Bullet ->\x95<- and curly apostrophe ->\x92<- in a cp1252
> bytestring'
> >>> ulatin1 = x.decode('latin1')
> >>> ulatin1
> u'Bullet ->\x95<- and curly apostrophe ->\x92<- in a cp1252 bytestring'
> >>> print ulatin1
> Bullet ->•<- and curly apostrophe ->'<- in a cp1252 bytestring
>

Hah, this looks right in the posted version.  It looked wrong (some weird
char not a bullet,and a blank for the apostrophe) in the python shell itself
and in the version pasted into the composition window (where the two chars
turned into boxes).  I haven't the foggiest idea how they came out looking
correct when posted...

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to