The contents of mysql4 database must be stored in right utf-8.
[scuttle] / templates / sidebar.block.common.php
1 <?php
2 $tagservice =& ServiceFactory::getServiceInstance('TagService');
3 $commonTags =& $tagservice->getRelatedTagsByHash($hash);
4 $commonTags =& $tagservice->tagCloud($commonTags, 5, 90, 225, 'alphabet_asc'); 
5
6 if ($commonTags && count($commonTags) > 0) {
7 ?>
8
9 <h2><?php echo T_('Popular Tags'); ?></h2>
10 <div id="common">
11     <p class="tags">
12     <?php
13     $contents = '';
14     foreach ($commonTags as $row) {
15         $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']);
16         $contents .= '<a href="'. sprintf($cat_url, $user, filter($row['tag'], 'url')) .'" title="'. $row['bCount'] .' '. $entries .'" rel="tag" style="font-size:'. $row['size'] .'">'. filter($row['tag']) .'</a> ';
17     }
18     echo $contents ."\n";
19     ?>
20     </p>
21 </div>
22
23 <?php
24 }
25 ?>

Benjamin Mako Hill || Want to submit a patch?