HMAC SHA1 using Java

18 January 17:59 (EST)
Working with OpenID CFC project I found another way to create HMAC:SHA1 string using Java: ( read more on HMAC SHA1 using Java )

String encoding conversion

20 July 10:42 (EST)
You can use following code to convert string encoding using Java library:

<cfset oCharset = createObject("java","java.nio.charset.Charset") />
<cfset fromCharSet = oCharset.forName('utf-8') />
<cfset toCharSet = oCharset.forName('iso-8859-1') />
<cfset b = toCharSet.decode(fromCharSet.encode(q)).ToString() />

( read more on String encoding conversion )