diff options
Diffstat (limited to 'doc/string/encode.rdoc')
-rw-r--r-- | doc/string/encode.rdoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/string/encode.rdoc b/doc/string/encode.rdoc index 2872887ef1..a7d400724d 100644 --- a/doc/string/encode.rdoc +++ b/doc/string/encode.rdoc @@ -38,3 +38,9 @@ interprets +self+ using +src_encoding+, encodes the new string using +dst_encodi Optional keyword arguments +enc_opts+ specify encoding options; see {Encoding Options}[rdoc-ref:encodings.rdoc@Encoding+Options]. + +Please note that conversion from an encoding +enc+ to the same encoding ++enc+ (independent of whether +enc+ is given explicitly or implicitly) +is a no-op, i.e. the string is simply copied without any changes, and +no exceptions are raised, even if there are invalid bytes. + |