[前][次][番号順一覧][スレッド一覧]

ruby-changes:71286

From: Burdette <ko1@a...>
Date: Sun, 27 Feb 2022 21:45:23 +0900 (JST)
Subject: [ruby-changes:71286] 289a4cf672 (master): [DOC] Extend intro/defn of 'transcoding' (#5602)

https://git.ruby-lang.org/ruby.git/commit/?id=289a4cf672

From 289a4cf6728c6b29cf59cc9e04e6d2d7302f896b Mon Sep 17 00:00:00 2001
From: Burdette Lamar <BurdetteLamar@Y...>
Date: Sun, 27 Feb 2022 06:44:58 -0600
Subject: [DOC] Extend intro/defn of 'transcoding' (#5602)

* Extend intro/defn of 'transcoding'
---
 doc/encoding.rdoc | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/doc/encoding.rdoc b/doc/encoding.rdoc
index 490066b5df..fcbbf3afa5 100644
--- a/doc/encoding.rdoc
+++ b/doc/encoding.rdoc
@@ -274,8 +274,14 @@ followed by a colon, space and the Encoding name or alias: https://github.com/ruby/ruby/blob/trunk/doc/encoding.rdoc#L274
 
 === Transcoding
 
-_Transcoding_ is the process of revising the content of a string or stream
-by changing its encoding.
+_Transcoding_ is the process of changing a sequence of characters
+from one encoding to another.
+
+As far as possible, the characters remain the same,
+but the bytes that represent them may change.
+
+The handling for characters that cannot be represented in the destination encoding
+may be specified by @Encoding+Options.
 
 ==== Transcoding a \String
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]