I am working with Javascript for one of the first times and its for a sha-1 hash. I have found code to do this, but one of its dependencies is a method to convert the string to utf-8, however the server I am comparing against utilizes utf-16. I have looked around and all my results keep showing up w/ utf-8. Can anybody at least point me in the right direction? Thanks.
+1
A:
Javascript already uses UTF-16 internally - use charCodeAt()
to get the values.
Christoph
2010-02-19 23:34:14
Thank you, Christoph
SwiftStriker00
2010-02-21 21:22:02