[Python Glasgow] Help with string ascii characters

Marc Cameron marccameron3d at gmail.com
Fri Jul 31 10:10:57 CEST 2015


Hey Dougal,

Im sure its pretty basic but this was my solution.

".encode('ascii', 'ignore')"

Cheers,


Marc Cameron

*Contract Technical Artist and AR Generalist*
t: *+447595491710*
e: marccameron3D at gmail.com

On 30 July 2015 at 22:29, Dougal Matthews <dougal at dougalmatthews.com> wrote:

> Do you know what encoding the file is? Where does the text come from? I
> guess that is the problem really.
>
>
>
>
> On Wed, Jul 29, 2015 at 3:55 AM -0700, "Marc Cameron" <
> marccameron3d at gmail.com> wrote:
>
> Hey all,
>>
>> I am currently reciving strings as such:
>>
>> The Elder Scrolls V: Skyrim® - Hearthfire™
>>
>> Although my python code is throwing up an error with regards to the R
>> character at the end, is there anyway I can retrive and print the string
>> exactly as it is displayed?
>>
>> I think im on my way there with encode/decode but not sure exactly how to
>> go about it.
>>
>> I am able to get past the error with with .encode('utf8') but I retrieve
>> this string:
>>
>> The Elder Scrolls V: Skyrim┬« - HearthfireÔäó
>>
>> Cheers,
>>
>> Marc Cameron
>>
>> *Contract Technical Artist and AR Generalist*
>> t: *+447595491710*
>> e: marccameron3D at gmail.com
>>
>
> _______________________________________________
> Glasgow mailing list
> Glasgow at python.org
> https://mail.python.org/mailman/listinfo/glasgow
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/glasgow/attachments/20150731/2e7b4c6c/attachment.html>


More information about the Glasgow mailing list