diff options
Diffstat (limited to 'roundcubemail/program/lib/utf8.inc')
| -rw-r--r-- | roundcubemail/program/lib/utf8.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/utf8.inc b/roundcubemail/program/lib/utf8.inc index 72a96b4e9..43ecb328b 100644 --- a/roundcubemail/program/lib/utf8.inc +++ b/roundcubemail/program/lib/utf8.inc @@ -88,7 +88,9 @@ function utf8ToUnicodeEntities ($source) { $thisPos++; } - if ($thisLen == 1) + if ($decimalCode<128) + $encodedLetter = chr($decimalCode); + else if ($thisLen == 1) $encodedLetter = "&#". str_pad($decimalCode, 3, "0", STR_PAD_LEFT) . ';'; else $encodedLetter = "&#". str_pad($decimalCode, 5, "0", STR_PAD_LEFT) . ';'; |
