From: n952162 <n952162@web.de>
To: Gentoo User list <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] python3 question
Date: Wed, 13 Jan 2021 19:31:39 +0100 [thread overview]
Message-ID: <3a417d99-a60e-8526-9df9-983894253885@web.de> (raw)
Hello. In python3, how do you do this?
tgt = 'gebuchte Umsätze;'
In python2, you could do this:
tgt = unicode ('gebuchte Umsätze;'.decode ('latin1'))
but that gives:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in
position 12: invalid continuation byte
In fact, any constant with ä in it will give you that.
next reply other threads:[~2021-01-13 18:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-13 18:31 n952162 [this message]
2021-01-13 18:57 ` [gentoo-user] python3 question n952162
2021-01-13 19:41 ` n952162
2021-01-13 19:43 ` [gentoo-user] python3 question [RESOLVED] n952162
2021-01-13 19:57 ` [gentoo-user] Re: python3 question Grant Edwards
2021-01-13 20:06 ` n952162
2021-01-13 20:22 ` Victor Ivanov
2021-01-13 21:31 ` n952162
2021-01-13 18:59 ` Grant Edwards
2021-01-13 19:09 ` n952162
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a417d99-a60e-8526-9df9-983894253885@web.de \
--to=n952162@web.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox