Re: UTF_16 question

Liste des GroupesRevenir à cl python 
Sujet : Re: UTF_16 question
De : nospam (at) *nospam* please.ty (jak)
Groupes : comp.lang.python
Date : 28. Apr 2024, 02:50:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0k6g1$lq8j$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
Stefan Ram ha scritto:
jak <nospam@please.ty> wrote or quoted:
                         I read it, both with encoding='utf_16_be' and
with 'utf_16_le' without errors but in the last case the bytes are
inverted.
    I think the order of the octets (bytes) is exactly the difference
   between these two encodings, so your observation isn't really
   surprising. The computer can't report an error here since it
   can't infer the correct encoding from the file data. It's like
   that koan: "A bit has the value 1. What does that mean?".
 
Understood. They are just 2 bytes and there is no difference between
them.
Thank you.

Date Sujet#  Auteur
27 Apr 24 * UTF_16 question5jak
27 Apr 24 +* Re: UTF_16 question2Stefan Ram
28 Apr 24 i`- Re: UTF_16 question1jak
29 Apr 24 `* Re: UTF_16 question2Richard Damon
1 May 24  `- Re: UTF_16 question1jak

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal