mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweak for String#encode
This commit is contained in:
parent
0d3d296b85
commit
e2bd36388f
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
Returns a copy of +self+ transcoded as determined by +dst_encoding+.
|
||||
Returns a copy of +self+ transcoded as determined by +dst_encoding+;
|
||||
see {Encodings}[rdoc-ref:encodings.rdoc].
|
||||
|
||||
By default, raises an exception if +self+
|
||||
contains an invalid byte or a character not defined in +dst_encoding+;
|
||||
that behavior may be modified by encoding options; see below.
|
||||
|
@ -45,3 +47,4 @@ given, conversion from an encoding +enc+ to the same encoding +enc+
|
|||
no-op, i.e. the string is simply copied without any changes, and no
|
||||
exceptions are raised, even if there are invalid bytes.
|
||||
|
||||
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue