Re: Image enhance

AM CR via Python-list <[email protected]>
Newsgroups gmane.comp.python.general
Message-ID <CACzugDmqV9xkYZYs0BRF8me4xYmzOu4ZBbPLPmfWiwi6VksgTA@mail.gmail.com>
Good morning everyone.

First of all, thank you in advance for your advice and suggestions.

After a few attempts, I've come to the conclusion that working on Windows
XP isn't very reasonable, given the many advances available.

I'll try this on a Windows 7 Home machine.

I'd appreciate it if someone could advise me on which version of Python is
recommended for that operating system.

Thank you very much.

Arodri

Thomas Passin <[email protected]> escreveu (terça, 2/09/2025 à(s) 23:24):

> On 9/2/2025 11:29 AM, amrodi9999--- via Python-list wrote:
> > I'm new to Python.
> > Operating System - Windows XP SP3
> > Python 2.7 installed.
> >
> > I got a script that tries to improve the image?
> > I created a bat file using the command line.
> >
> > C:\python27\python.exe d:\temp\teste.py
> >
> > But even though it runs, it displays an error:
> >
> > "... no encoding declare..."
> >
> > Can anyone help?
> >
> > My sincere thanks in advance.
>
> The code file you posted contains several words that probably contain
> non-ascii characters (e.g.,  colorizacao). By default, Python 2.x uses
> ASCII encoding for the source file. You can tell it to use another
> encoding by a special comment at the start of the file that contains
>
> "# coding: utf-8"
>
> (or whatever encoding you want). One common comment format, which is
> understood by many Linux programs, is
>
> # -*- coding: utf-8 -*-
>
> Python 3.x uses utf-8 by default.
>
> --
> https://mail.python.org/mailman3//lists/python-list.python.org
>
-- 
https://mail.python.org/mailman3//lists/python-list.python.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.