Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47547

Encoding questions (continuation)

Date 2013-06-10 14:13 +0300
From Νικόλαος Κούρας <nikos.gr33k@gmail.com>
Subject Encoding questions (continuation)
Newsgroups comp.lang.python
Message-ID <mailman.2964.1370862786.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas 
Perstinger έγραψε:

 >  >>> s = b'\xce\xb1'
 >
 >  >>> s[0]
 >
 > 206

's' is a byte object, how can you treat it as a string asking to present 
you its first character?

 >
 >  >>> s[1]
 >
 > 177

's' is a byte object, how can you treat it as a string asking to present 
you its first character?

 > A byte object is a sequence of bytes (= integer values) and support  
indexing

A sequeence of bystes is a a sequence of bits which is zeros and one's 
not integers.


 > Because your method doesn't work.
 > If you use all possible 256 bit-combinations to represent a valid
 > character, how do you decide where to stop in a sequence of bytes?

How you mean? please provice an example so i can understand this.

 > > EBCDIC and ASCII and Unicode are charactet sets, correct?

 > > iso-8859-1, iso-8859-7, utf-8, utf-16, utf-32 and so on are 
encoding methods, right?

 > Look at http://www.unicode.org/glossary/ for an explanation of all 
the terms

I did but docs confuse me even more. Can you pleas ebut it simple.

Unicode as i udnerstand it was created out of need for a big character 
set that could be able to hold all worlds symboles, whiel ascii could 
only store first 127 and extended 246.

ascii and unicode are character sets.

everything else sees to be an encoding system that work upne the 
characters set(never deen them though act on the scii charset)

but iso-8859-7 is both a charset and an encoding system?



ps. i tried to post a reply to the thread i opend via thunderbird mail 
client, but not as a reply to somne other reply but as  new mail send to 
python list.
because of that a new thread will be opened.
How can i tell thunderbird to reply to the original thread and not start 
a new one?
Sorry for that but i can' even post via google groups any more. it says 
that an error occured.
Sorry for this. please xplain hpw to reply properly to correct hread via 
mail.
thank you.
-- 
Webhost <http://superhost.gr>&& Weblog <http://psariastonafro.wordpress.com>

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Encoding questions (continuation) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-10 14:13 +0300
  Re: Encoding questions (continuation) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-10 11:41 +0000
    Re: Encoding questions (continuation) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-10 06:56 -0700
      Re: Encoding questions (continuation) Fábio Santos <fabiosantosart@gmail.com> - 2013-06-10 17:17 +0100
      Re: Encoding questions (continuation) Larry Hudson <orgnut@yahoo.com> - 2013-06-11 00:52 -0700
        Re: Encoding questions (continuation) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 13:09 -0700
          Re: Encoding questions (continuation) Larry Hudson <orgnut@yahoo.com> - 2013-06-12 01:20 -0700
            Re: Encoding questions (continuation) Larry Hudson <orgnut@yahoo.com> - 2013-06-12 01:32 -0700
      OT: e-mail reply to old/archived message (was Re: Encoding questions (continuation)) Andreas Perstinger <andipersti@gmail.com> - 2013-06-11 13:21 +0200
        Re: OT: e-mail reply to old/archived message (was Re: Encoding questions (continuation)) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 13:14 -0700
          Re: OT: e-mail reply to old/archived message Andreas Perstinger <andipersti@gmail.com> - 2013-06-12 00:13 +0200
            Re: OT: e-mail reply to old/archived message nagia.retsina@gmail.com - 2013-06-11 18:16 -0700
              Re: OT: e-mail reply to old/archived message Phil Connell <pconnell@gmail.com> - 2013-06-12 07:36 +0100
                Re: OT: e-mail reply to old/archived message nagia.retsina@gmail.com - 2013-06-11 23:58 -0700
    Re: Encoding questions (continuation) Lele Gaifax <lele@metapensiero.it> - 2013-06-11 00:19 +0200
      Re: Encoding questions (continuation) Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 13:06 -0700

csiph-web