summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index ccb54dfff..a0bac4f9d 100644
--- a/transcode.c
+++ b/transcode.c
@@ -2295,7 +2295,9 @@ str_transcode0(int argc, VALUE *argv, VALUE *self, int ecflags, VALUE ecopts)
if ((ecflags & (ECONV_UNIVERSAL_NEWLINE_DECODER|
ECONV_CRLF_NEWLINE_ENCODER|
- ECONV_CR_NEWLINE_ENCODER)) == 0) {
+ ECONV_CR_NEWLINE_ENCODER|
+ ECONV_HTML_TEXT_ENCODER|
+ ECONV_HTML_ATTR_ENCODER)) == 0) {
if (senc && senc == denc) {
return -1;
}