| Reply | « Previous Thread | Next Thread » |
|
hia guys iv only been learning python for a few months but i was just wondering if anyone knows what format nomal text is changed into after a file has been compiled to pyc then decompiled again using the decompyle method?
Im trying to translate an application at the moment from russian to english but after iv decompiled the pyc file i can see the python code fine its just where the russian text should be in a query for example it comes out something like this (ru('xd0\x92\xd1\x8b\xd0\xb9\xd1\x82\xd0\xb8') iv tried just adding d092d18bd0b9d182d0b8 from that string into MDCrack but it says its not md5 or recognisable hashes and iv tried the whole string as hex with no luck either. Does anyone know what type of hashes this is or how to make python print this again as readable so i can try and start translating the application by copy and pasting the russian text into a translator. cheers for your time guys. |
|
Quote:
>>> print "\xd0\x92\xd1\x8b\xd0\xb9\xd1\x82\xd0\xb8" ÐÑйÑи You might need to set charmap first somehow. I don't know how it works, so don't ask from me. Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
Quote:
It's verry simple, all russian text after decompiled looks so. Code:
>>> a='\xd0\x92\xd1\x8b\xd0\xb9\xd1\x82\xd0\xb8' >>> print unicode(a,'utf-8') Выйти >>> |
|
Thanks very much, i had been stuck on that for a while an now it looks so simple lol thanks again mate your a life saver.
|
|
Is it possable to use this code with the raw_input command:
a='\xd0\x92\xd1\x8b\xd0\xb9\xd1\x82\xd0\xb8' print unicode(a,'utf-8') Выйти when i looked around on google i noticed posts saying that unicode cant be used with raw_input, is this true and i can only use this in idle? |
|
I am not sure but I remember sometime when I have tried this, Unicode input does,nt work with raw input. But I don't use the raw input nowadays specially in PyS60,
Kandyfloss V 7.0642.0 18-10-06 RH-51 Nokia 7610 |
| kandyfloss |
| View Public Profile |
| Find all posts by kandyfloss |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| TextWrapper example class | miohtama | Python | 6 | 2008-03-08 12:46 |
| Exit form from edit mode | tqchcm | Symbian User Interface | 13 | 2007-10-31 07:06 |
| Writing chinese text on emulator | TheLittleBird | Symbian | 1 | 2007-06-15 12:41 |
| Rendering text in multiple languages | TheLittleBird | General Symbian C++ | 0 | 2007-06-05 13:52 |
| Persist text value of user defined option in Enumerated Text Settings List | leethomso | Symbian User Interface | 0 | 2004-11-24 19:49 |