Browsing/transfering files with non-english characters
-
- Registriert: 21. Apr 2011
- Letzter Besuch:
- Beiträge: 1
Hi, I'm testing the last version (0.4.80 and also from svn) with a Nokia 6700 Slide (S60 3rd Edition, Feature Pack 2) and all works perfect, except browsing some directories in the phone with non-English characters (such as Spanish "Cámara").
This is the output when trying to open those folders:
Code
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_scheduler.py", line 117, in run
result = self.handler.listdir(argument.path())
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_handler.py", line 48, in listdir
response = self.client.listdir(subdir)
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_wrapper.py", line 132, in listdir
self.setpath(subdir)
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_wrapper.py", line 127, in setpath
path = str(path).replace("\", "/")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 12: ordinal not in range(128)
I tried a suggested fix in similar bugs, and replaced str(path).replace("\\", "/") with unicode(str(path).replace("\\", "/")), but resulted in this:
Code
QObject::connect: Cannot queue arguments of type 'QTextCharFormat'
(Make sure 'QTextCharFormat' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is registered using qRegisterMetaType().)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_scheduler.py", line 117, in run
result = self.handler.listdir(argument.path())
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_handler.py", line 48, in listdir
response = self.client.listdir(subdir)
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_wrapper.py", line 137, in listdir
self.setpath(subdir)
File "/usr/lib/pymodules/python2.6/series60_remote/lib/obex_wrapper.py", line 133, in setpath
return self.__check(self.client.chpath(path))
File "/usr/lib/python2.6/dist-packages/obexftp/__init__.py", line 79, in chpath
def chpath(*args): return _obexftp.client_chpath(*args)
TypeError: in method 'client_chpath', argument 2 of type 'char *'
I don't know how to fix this. Any idea?
Regards
- Moderiert von:
- Admins
Benutzer online
- anacarey,
- antonbuko,
- aquattuphok,
- arnoldinio,
- beseibao,
- dieselro,
- dysmjkhsll,
- fiorinoselec,
- glensnooze,
- iaxkghlk,
- imlbkvxyf,
- ithznekqq,
- ivewsantap,
- iwhplyta,
- joppirmdiam,
- jtabaryxy,
- mhzlprgw,
- minaarireta,
- nypxprdbqv,
- peedgeorern,
- qkazcfjsnwgwqdhnxcak,
- saripaita,
- sooggrord,
- tipozarre,
- triendes,
- ttlbakrci,
- viravases,
- vlqtxhavz,
- vymwfaxet,
- xtsskccg,
- zennalit,
- zwmdkqtt
- und 49 Gäste
Diese Angaben basieren auf den Useraktivitäten der letzten 60 Minuten.