select cast(hashbytes('md5', 'test') as varchar)
displays
載쵫ⅆ珓�荎✦
but in C#,
System.Security.Cryptography.MD5.ComputeHash('test');
displays
c8059e2ec7419f590e79d7f1b774bfe6
which looks to be correct. Is this a problem with SQL Server's encoding?