Vous êtes ici > Les forums > General discussion > Managing application with non-latin name en

Les forums

Managing application with non-latin name

Nouveau  - Répondre
Auteur Posts
fenixk19 Le Vendredi 30 Avril 2010 à 16:59 - [Citer]
Membre

Membre
I've created application shortcut in POL, but POL can't manage it(run configuration, install patches, etc.) if its name contains non-latin(cyrillic in my case) letters.
fenixk19 Le Vendredi 30 Avril 2010 à 17:01 - [Citer]
Membre

Membre
Here is POL output:

~> playonlinux
PlayOnLinux v3.7.3

Checking python :                     [ Ok ]
Running configuration of Метро 2033
Traceback (most recent call last):
File "/usr/share/playonlinux/python/mainwindow.py", line 371, in Configure
os.system("bash \""+Variables.playonlinux_env+"/bash/polconfigurator\" \""+game_exec+"\"&")
UnicodeEncodeError: 'ascii' codec can't encode characters in position 52-56: ordinal not in range(128)
Метро 2033
KillApp

Edité par fenixk19

NSLW Le Vendredi 30 Avril 2010 à 17:27 - [Citer]
Membre

Membre
That's also problem for any non-standard latin letter (e.g. Polish letters). I think that this is an task for developer of POL.
LeSnake Le Lundi 28 Mars 2011 à 23:00 - [Citer]
Membre

Membre
I had this problem too when trying to install a .pol file.
The message was
"
Traceback (most recent call last):
File "/usr/share/playonlinux/python/file.py", line 91, in Next
print(self.champ.GetValue())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
"

I opened the file, went to line 91, which is
"
print(self.champ.GetValue())
"
, as expected.

I just changed it to
"
print(self.champ.GetValue().encode('utf-8'))
"

And everything ran fine.

Hope this will help.

LeSnake

Edité par LeSnake

Il n'y a rien à voir ici