X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/489e7846289d4fb66eb4b9fab0fed4af719b98ee..c6b8e3075d2fd6cd5ef345aa686a68cc899eb5fe:/selfforum-cgi/shared/Encode/Plain.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Encode/Plain.pm b/selfforum-cgi/shared/Encode/Plain.pm index f2085ce..17c749c 100644 --- a/selfforum-cgi/shared/Encode/Plain.pm +++ b/selfforum-cgi/shared/Encode/Plain.pm @@ -255,17 +255,17 @@ sub toUTF8 ($) { ? $$ref : $ref; - if ($v56) { - no warnings 'utf8'; - $string =~ tr/\x80-\xff//CU; - } - else { +# if ($v56) { +# no warnings 'utf8'; +# $string =~ tr/\x80-\xff//CU; +# } +# else { $string =~ s {([\x80-\xff])} { chr((ord ($1) >> 6) | 192) .chr((ord ($1) & 191)) }eg; - } +# } ref($ref) ? \$string @@ -531,4 +531,4 @@ BEGIN { # # -### end of Encode::Plain ####################################################### \ No newline at end of file +### end of Encode::Plain #######################################################