Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #6173
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Erich Schnoor <eschnoor@multi-matrix.de> |
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] Fwd: Codepage-Methode und Basis 4096 |
| Date | Sun, 11 Aug 2024 11:44:32 +0200 |
| Lines | 47 |
| Message-ID | <9982AF37-667D-4825-BA0D-A80F22D9E3CD@multi-matrix.de> (permalink) |
| References | <172330780360.24688.2495688134725736758@mail.python.org> |
| Reply-To | Wolli Buechel <wjb131@web.de> |
| Mime-Version | 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | base64 |
| X-Trace | news.uni-berlin.de C0+kHXz0UtpU0q+JvibYyAWn2fI9uI859wYoETia/r2Q== |
| Cancel-Lock | sha1:NZrc30UAuZJDfpbM5GoW+5/VXkE= sha256:qooHzh6JU5Ku+s2Yph2sO9vrNmeLtr6+8AocJrTJElc= |
| Authentication-Results | mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=jintelligence.com header.i=@jintelligence.com header.b=ck1KXcdA; dkim-adsp=none (unprotected policy); dkim-atps=neutral |
| Authentication-Results | mail-01.jintelligence.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=jintelligence.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d= jintelligence.com; h=x-mailer:message-id:to:references:date :subject:mime-version:reply-to:content-type:from; s=dkim; t= 1723369483; x=1725961484; bh=CyESjRLTFwJ9MvdVhQH12G0RtqQCcG08DKj dixJ+Fh4=; b=ck1KXcdA1Cd6IGY8VQiKR95PXKmo8wE0vW1w2aPQdl6DSbyqDfi mvR3HC9Lczbb5ZH2bK6j05pitKvBzOqcgZV5eAJlE9hDVK8ESq2aqbF7+3um8bAk K1O04O7jAb6TwtgcoEjRSS6qjINpeMQ2lqOfA1b4VXdz0n7hFIbT9XgbwRqtoA6u aW86Fpdr8ls0Fj1MZBeJZWhGBVNginf58Mtp8lIGTpmo0hkLcj5zl3kTOC5ByUZW b8rwXI9A+IgF6QtaKyN0XVnQ40B2p+PaxOgMMonL/mztYooeXZDGhU7L17NiBPRP wZ31jwzIAV3vJprWa7w74GJ1eQxV5x4axdw== |
| X-Virus-Scanned | Debian amavis at mail-01.jintelligence.com |
| X-Mailer | Apple Mail (2.3774.500.171.1.1) |
| Message-ID-Hash | WAMBV7UYEQN7BXCVOUASXQ3QSX7YBU62 |
| X-Message-ID-Hash | WAMBV7UYEQN7BXCVOUASXQ3QSX7YBU62 |
| X-MailFrom | eschnoor@multi-matrix.de |
| X-Mailman-Rule-Misses | dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-python-de.python.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header |
| X-Content-Filtered-By | Mailman/MimeDel 3.3.10b1 |
| X-Mailman-Version | 3.3.10b1 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| Archived-At | <https://mail.python.org/archives/list/python-de@python.org/message/WAMBV7UYEQN7BXCVOUASXQ3QSX7YBU62/> |
| List-Archive | <https://mail.python.org/archives/list/python-de@python.org/> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Owner | <mailto:python-de-owner@python.org> |
| List-Post | <mailto:python-de@python.org> |
| List-Subscribe | <mailto:python-de-join@python.org> |
| List-Unsubscribe | <mailto:python-de-leave@python.org> |
| Xref | csiph.com de.comp.lang.python:6173 |
Show key headers only | View raw
Hallo, sg. Herr Büchel,
da muss ich noch an die nicht korrigierte Version gekommen sein.
Hier die letzte berichtigte Version:
data coding and sending
1. read data:
2. write data:
3. menue:
chose position > 1 / 2 / 3 > 1
insert file > ABCäöü߀𝄞
inserted text
ABCäöü߀𝄞
sending <index>data
sequence of <index>data:
Ã,Ä,Å,ŧ,Ź,ſ,Ţ,2į,tơ,
sequence of <original>data:
ABCäöü߀𝄞
sequence of <binary>data: 000000000100000100000000010000100000000001000011000000001110010000000000111101100000000011111100000000001101111100100000101011001101000100011110
Die Sendung erfolgt mit der Datei: binfolge.bin :
Die <point>Zahlen des original Textes werden hier nicht mehr ausgegeben. Sie sind für die
kodierung auch nicht erforderlich, sondern nur noch für die Markierung auf der Tastatur.
mfg
Erich Schnoor
> Anfang der weitergeleiteten Nachricht:
>
> Von: Wolli Buechel über python-de <python-de@python.org>
> Betreff: [Python-de] Re: Fwd: Codepage-Methode und Basis 4096
> Datum: 10. August 2024 um 18:36:43 MESZ
> An: python-de@python.org
> Antwort an: Wolli Buechel <wjb131@web.de>
>
>> ABCäöü߀𝄞
>> <point>data
>> 65 66 67 228 246 252 223 8364 119070
>> number of bytes 12
>
> Ihr Programm berechnet die Zahl der Bytes nicht korrekt.
>
> Der String s = "ABCäöü߀𝄞" hat nicht 12 Byte, sondern 18 Byte:
>
> ipython
> Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0]
> Type 'copyright', 'credits' or 'license' for more information
> IPython 8.26.0 -- An enhanced Interactive Python. Type '?' for help.
>
> In [1]: s = "ABCäöü߀𝄞"
>
> In [2]: [ ord(x) for x in s ]
> Out[2]: [65, 66, 67, 228, 246, 252, 223, 8364, 119070]
>
> In [3]: [ list(bytes(x, 'utf8')) for x in s ]
> Out[3]:
> [[65],
> [66],
> [67],
> [195, 164],
> [195, 182],
> [195, 188],
> [195, 159],
> [226, 130, 172],
> [240, 157, 132, 158]]
>
> In [4]: [ len(bytes(x, 'utf8')) for x in s ]
> Out[4]: [1, 1, 1, 2, 2, 2, 2, 3, 4]
>
> In [5]: sum([ len(bytes(x, 'utf8')) for x in s ])
> Out[5]: 18
>
> W. Büchel
> _______________________________________________
> python-de Mailingliste -- python-de@python.org
> Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an python-de-leave@python.org
> https://mail.python.org/mailman3/lists/python-de.python.org/
> Mitgliedsadresse: eschnoor@multi-matrix.de
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
[Python-de] Re: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-09 05:18 +0000
[Python-de] Fwd: Codepage-Methode und Basis 4096 Erich Schnoor <eschnoor@multi-matrix.de> - 2024-08-09 11:25 +0200
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-09 17:50 +0000
[Python-de] Fwd: Codepage-Methode und Basis 4096 Erich Schnoor <eschnoor@multi-matrix.de> - 2024-08-09 21:52 +0200
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-10 08:25 +0000
[Python-de] Fwd: Codepage-Methode und Basis 4096 Erich Schnoor <eschnoor@multi-matrix.de> - 2024-08-10 11:48 +0200
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-13 09:28 +0000
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-10 16:36 +0000
[Python-de] Fwd: Codepage-Methode und Basis 4096 Erich Schnoor <eschnoor@multi-matrix.de> - 2024-08-11 11:44 +0200
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-11 15:22 +0000
[Python-de] Fwd: Codepage-Methode und Basis 4096 Erich Schnoor <eschnoor@multi-matrix.de> - 2024-08-11 19:06 +0200
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-11 20:36 +0000
[Python-de] Re: Fwd: Codepage-Methode und Basis 4096 "Wolli Buechel" <wjb131@web.de> - 2024-08-11 20:40 +0000
csiph-web