diff --git a/dom/src/base/nsLocation.cpp b/dom/src/base/nsLocation.cpp index 422d753008bf..3e76fbe177ff 100644 --- a/dom/src/base/nsLocation.cpp +++ b/dom/src/base/nsLocation.cpp @@ -356,7 +356,7 @@ LocationImpl::GetHash(nsAString& aHash) if (NS_FAILED(rv)) { // Oh, well. No intl here! NS_UnescapeURL(ref); - CopyASCIItoUCS2(ref, unicodeRef); + CopyASCIItoUTF16(ref, unicodeRef); rv = NS_OK; } }