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.
I am working with Javascript for one of the first times and its for
Share
Javascript already uses UTF-16 internally – use
charCodeAt()to get the values.