Results 1 to 15 of 153

Thread: router2sms [python]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Dec 2008
    Location
    Moscow
    Posts
    83

    Non-ASCII character... but no encoding declared...

    Друзья, у меня питон не самый модный, и обновляться не хотелось бы

    PHP Code:
    $ python
    Python 2.6.5 
    (r265:79063, Mar 21 2010, 03:24:08)
    [
    GCC 4.1.1] on linux2
    Type 
    "help", "copyright", "credits" or "license" for more information.
    >>>
    $ 
    Эти скрипты из архива sms.zip (9.1 Кбайт, 128 просмотров) с первого поста требуют доработки для работы с Python 2.6.* или должны работать сразу?

    Мне сразу же выдает ошибку
    PHP Code:
    $ python send.py 79039690062 test 1 2 3
    Traceback 
    (most recent call last):
      
    File "send.py", line 4, in <module>
        
    import sender
      File 
    "/opt/etc/sendsms/sender.py", line 14
    SyntaxError
    : Non-ASCII character '\xd1' in file /opt/etc/sendsms/sender.py on line 14, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
    $ 
    Last edited by the; 02-09-2010 at 12:50.
    wl-500gp v2 + tor + polipo + барахло всякое на python

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •