Re: Any python Guru?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/8/14 Frank Murphy <frankly3d@xxxxxxxxx>:
> https://fedorahosted.org/freemedia/ticket/8457
> crashes out.
> " Trac detected an internal error:
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xa8' in position
> 9: ordinal not in range(128)
>
>
> Can this ticket be deleted without me (non-python guru)
> making a dogs liathróidí of it?
>
>
> --
> Regards,
> Frank
> "Jack of all, fubars"
> _______________________________________________

Hello Frank,
Well, i dont think i am a python guru, but that error means that
a 'raw string' arrives and is not handled correctly, as utf-8, for example,
let "var" have 'raw' binary 'string' data:

var.encode('utf-8')  # this should work

Since you are saying that you want to work with the content from var
encoded as utf-8. The default encoder is ascii and since that 'raw string'
isnt in the ascii table, the code raise an UnicodeEncodeError.

I tryed to login into track with my fas account, but i couldnt ... maybe
a permission access issue :-), hope this helps,

-- 
"Code without tests is broken by design." - Jacob Kaplan-Moss
Show me the mone ... code!: https://bitbucket.org/edvm
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure



[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux