Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

[FIXED] Help -> About EventGost... causes UnicodeDecodeError

Found a bug in EventGhost? Report it here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

[FIXED] Help -> About EventGost... causes UnicodeDecodeError

Post by Pako »

Build 1487

Code: Select all

16:02:10   Traceback (most recent call last):
16:02:10     File "d:\Programs\E\EventGhost\eg\Utils.py", line 224, in Wrapper
16:02:10       return gr.switch(*args, **kwargs)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\MainFrame\__init__.py", line 918, in OnCmdAbout
16:02:10       self.aboutDialog = eg.AboutDialog.Create(self)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\Dialog.py", line 59, in Create
16:02:10       self.__gr.switch(*args, **kwargs)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 369, in Process
16:02:10       notebook.AddPage(SystemInfoPanel(notebook), Text.tabSystemInfo)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 285, in __init__
16:02:10       HtmlPanel.__init__(self, parent, "<table>%s</table>" % sysInfoTemplate)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 208, in __init__
16:02:10       htmlWindow.SetPage(html)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\HtmlWindow.py", line 52, in SetPage
16:02:10       html
16:02:10   UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 156: ordinal not in range(128)
Pako
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Help -> About EventGost... causes UnicodeDecodeError

Post by Bitmonster »

How do you write the current weekday and month in Czech?

Try to change around line 266 in eg/Classes/AboutDialog.py from:

Code: Select all

        buildTime = time.strftime(
            Text.CreationDate, 
            time.gmtime(eg.Version.buildTime)
        )
to:

Code: Select all

        buildTime = time.strftime(
            Text.CreationDate, 
            time.gmtime(eg.Version.buildTime)
        ).decode(eg.systemEncoding)
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Help -> About EventGost... causes UnicodeDecodeError

Post by Pako »

Current weekday in Czech language is named "Pátek" and the month is called "Prosinec".
After modifying, the code already not causes error !

Pako
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Help -> About EventGost... causes UnicodeDecodeError

Post by Bartman »

Has the fix been submitted to the svn?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Help -> About EventGost... causes UnicodeDecodeError

Post by Pako »

Bartman wrote:Has the fix been submitted to the svn?
Yes, I saw, that in the SVN rep. is already prepared corrected version.
Pako
Post Reply