summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-12-26 14:06:21 -0600
committerGitHub <noreply@github.com>2025-12-26 14:06:21 -0600
commitdedde996762dbed72d3f1e11a02d69a9d080edc4 (patch)
treeb89f8cb03ad52c96bdafeb065855548f91bea4c2 /doc
parent7b3b1a1442a6665ab300207bf064ae360272525a (diff)
[DOC] Use Japanese for multi-byte characters (#15745)
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/files.rdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/files.rdoc b/doc/examples/files.rdoc
index f736132770..cb400c81be 100644
--- a/doc/examples/files.rdoc
+++ b/doc/examples/files.rdoc
@@ -7,8 +7,8 @@ text = <<~EOT
Fifth line
EOT
-# Russian text.
-russian = "\u{442 435 441 442}" # => "тест"
+# Japanese text.
+japanese = 'こんにちは'
# Binary data.
data = "\u9990\u9991\u9992\u9993\u9994"
@@ -16,8 +16,8 @@ data = "\u9990\u9991\u9992\u9993\u9994"
# Text file.
File.write('t.txt', text)
-# File with Russian text.
-File.write('t.rus', russian)
+# File with Japanese text.
+File.write('t.ja', japanese)
# File with binary data.
f = File.new('t.dat', 'wb:UTF-16')