diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-13 17:14:38 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-13 17:14:38 +0000 |
| commit | 145a02c54531442895076a965395fdce310197e6 (patch) | |
| tree | 6298d950f351367645d73beaec442f1bd5217086 /roundcubemail/program/include/rcube_shared.inc | |
| parent | d18d098e705c71e0572c2b4cdf511828e993cdb1 (diff) | |
Switched to full UTF-8 support
git-svn-id: https://svn.roundcube.net/trunk@102 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_shared.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index b622203dd..a36458b00 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -88,13 +88,9 @@ class rcube_html_page $this->charset = $charset; } - - function encode_string($str) + function get_charset() { - if ($this->charset=='UTF-8' && function_exists('utf8_encode')) - return utf8_encode($str); - else - return $str; + return $this->charset; } @@ -187,7 +183,7 @@ class rcube_html_page // correct absolute pathes in images and other tags $output = preg_replace('/(src|href|background)=(["\']?)(\/[a-z0-9_\-]+)/Ui', "\\1=\\2$base_path\\3", $output); - print $output; + print rcube_charset_convert($output, 'UTF-8', $this->charset); } |
