Index: trac/web/api.py =================================================================== --- trac/web/api.py (revision 11041) +++ trac/web/api.py (working copy) @@ -343,8 +343,12 @@ Will be `None` if the user has not logged in using HTTP authentication. """ - return self.environ.get('REMOTE_USER') + username = self.environ.get('REMOTE_USER') + if isinstance( username, basestring ): + username = to_unicode( username ) + return username + @property def scheme(self): """The scheme of the request URL"""