# HG changeset patch # User Marcin Kuzminski # Date 2011-01-24 21:41:40 # Node ID 129eb072b8a80eaa96473465a050ed23d93aa6cd # Parent de671e3af0e50fafa262794c535b689b6b8cc704 fixes for #99, added casting to unicode for int chars as utf-8 files diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -199,11 +199,12 @@ tooltip = _ToolTip() class _FilesBreadCrumbs(object): def __call__(self, repo_name, rev, paths): + if isinstance(paths, str): + paths = paths.decode('utf-8') url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, revision=rev, f_path=''))] paths_l = paths.split('/') - for cnt, p in enumerate(paths_l): if p != '': url_l.append(link_to(p, url('files_home',