Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c0dac1a5
Kaydet (Commit)
c0dac1a5
authored
May 15, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Beef up the unicode() description a bit, based on material from AMK's
"What's New in Python ..." documents.
üst
da05e977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
libfuncs.tex
Doc/lib/libfuncs.tex
+12
-4
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
c0dac1a5
...
@@ -688,10 +688,18 @@ strings. The argument must be in the range [0..65535], inclusive.
...
@@ -688,10 +688,18 @@ strings. The argument must be in the range [0..65535], inclusive.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
unicode
}{
string
\optional
{
, encoding
\optional
{
, errors
}}}
\begin{funcdesc}
{
unicode
}{
string
\optional
{
, encoding
\optional
{
, errors
}}}
Decodes
\var
{
string
}
using the codec for
\var
{
encoding
}
. Error
Create a Unicode string from an 8-bit string
\var
{
string
}
using the
handling is done according to
\var
{
errors
}
. The default behavior is
codec for
\var
{
encoding
}
. The
\var
{
encoding
}
parameter is a string
to decode UTF-8 in strict mode, meaning that encoding errors raise
giving the name of an encoding. Error handling is done according to
\exception
{
ValueError
}
. See also the
\refmodule
{
codecs
}
module.
\var
{
errors
}
; this specifies the treatment of characters which are
invalid in the input encoding. If
\var
{
errors
}
is
\code
{
'strict'
}
(the default), a
\exception
{
ValueError
}
is raised on errors, while a
value of
\code
{
'ignore'
}
causes errors to be silently ignored, and a
value of
\code
{
'replace'
}
causes the official Unicode replacement
character,
\code
{
U+FFFD
}
, to be used to replace input characters which
cannot be decoded. The default behavior is to decode UTF-8 in strict
mode, meaning that encoding errors raise
\exception
{
ValueError
}
. See
also the
\refmodule
{
codecs
}
module.
\versionadded
{
2.0
}
\versionadded
{
2.0
}
\end{funcdesc}
\end{funcdesc}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment