Permalink
Browse files

Merge pull request #945 from aleho/2.3

Use bytcode sequence for unicode ellipsis

Fixes #3356
  • Loading branch information...
2 parents fe4f9f2 + c7fda56 commit 7e00be8f76c7c7db346f1af466d79f360bd22926 @markstory markstory committed Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/String.php
View
2 lib/Cake/Utility/String.php
@@ -479,7 +479,7 @@ public static function truncate($text, $length = 100, $options = array()) {
if (isset($options['ending'])) {
$default['ellipsis'] = $options['ending'];
} elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') {
- $default['ellipsis'] = chr(226);
+ $default['ellipsis'] = "\xE2\x80\xA6";
}
$options = array_merge($default, $options);
extract($options);

0 comments on commit 7e00be8

Please sign in to comment.