converting java byte[] to Jython str/unicode

Master Of The <[email protected]> Thu, 7 Apr 2016 09:36:19 +0100
Newsgroups gmane.comp.lang.jython.user
Message-ID <[email protected]>
Hi,

I am having java byte[] available to me from JDBC driver which Id
like to convert to Jython str/unicode types (with specified charset when
converting to unicode eg. utf8).

Whats the best way to do this?

... unless of course its as simple as:

s_str = str(rs.getString(...))
s_unicode = str(rs.getString(...)).decode('utf8')

Regards
-- 
Master Of The Universe
[email protected]

------------------------------------------------------------------------------