summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/transcode.c b/transcode.c
index 4d9f00f8c2..55f4b2faf3 100644
--- a/transcode.c
+++ b/transcode.c
@@ -137,16 +137,16 @@ get_replacement_character(rb_encoding *enc)
return "?";
}
else if (utf16be_encoding == enc) {
- return "\x00?";
+ return "\xFF\xFD";
}
else if (utf16le_encoding == enc) {
- return "?\x00";
+ return "\xFD\xFF";
}
else if (utf32be_encoding == enc) {
- return "\x00\x00\x00?";
+ return "\x00\x00\xFF\xFD";
}
else if (utf32le_encoding == enc) {
- return "?\x00\x00\x00";
+ return "\xFD\xFF\x00\x00";
}
else {
return "?";