<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas
Perstinger έγραψε:<br>
<br>
> >>> s = b'\xce\xb1'<br>
> <br>
> >>> s[0]<br>
> <br>
> 206<br>
<br>
's' is a byte object, how can you treat it as a string asking to
present you its first character?<br>
<br>
> <br>
> >>> s[1]<br>
> <br>
> 177<br>
<br>
's' is a byte object, how can you treat it as a string asking to
present you its first character? <br>
<br>
> A byte object is a sequence of bytes (= integer values) and
support indexing<br>
<br>
A sequeence of bystes is a a sequence of bits which is zeros and
one's not integers.<br>
<br>
<br>
> Because your method doesn't work.<br>
> If you use all possible 256 bit-combinations to represent a
valid <br>
> character, how do you decide where to stop in a sequence of
bytes?<br>
<br>
How you mean? please provice an example so i can understand this.<br>
<br>
> > EBCDIC and ASCII and Unicode are charactet sets, correct?<br>
<br>
> > iso-8859-1, iso-8859-7, utf-8, utf-16, utf-32 and so on
are encoding methods, right?<br>
<br>
> Look at <a class="moz-txt-link-freetext" href="http://www.unicode.org/glossary/">http://www.unicode.org/glossary/</a> for an explanation of
all the terms<br>
<br>
I did but docs confuse me even more. Can you pleas ebut it simple.<br>
<br>
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.<br>
<br>
ascii and unicode are character sets.<br>
<br>
everything else sees to be an encoding system that work upne the
characters set(never deen them though act on the scii charset)<br>
<br>
but iso-8859-7 is both a charset and an encoding system?<br>
<br>
<br>
<br>
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.<br>
because of that a new thread will be opened.<br>
How can i tell thunderbird to reply to the original thread and not
start a new one?<br>
Sorry for that but i can' even post via google groups any more. it
says that an error occured.<br>
Sorry for this. please xplain hpw to reply properly to correct hread
via mail.<br>
thank you.<br>
<div class="moz-signature">-- <br>
<a href="http://superhost.gr"><font color="blue">Webhost</font></a><font
color="blue">
<font color="lime"> &&
<a href="http://psariastonafro.wordpress.com"><font
color="red">Weblog</font></a></font></font></div>
</body>
</html>