Set input encoding to utf8

This commit is contained in:
Kevin Sawicki
2013-03-11 19:15:23 -07:00
parent 2a78183a15
commit cc7ddc59ff

View File

@@ -5,7 +5,7 @@ class Pasteboard
signatureForMetadata: null
md5: (text) ->
crypto.createHash('md5').update(text).digest('hex')
crypto.createHash('md5').update(text, 'utf8').digest('hex')
write: (text, metadata) ->
@signatureForMetadata = @md5(text)