Classic ASP - How to convert string to UTF8 to USC2
Posted
by Brian G
on Stack Overflow
See other posts from Stack Overflow
or by Brian G
Published on 2009-05-27T14:43:33Z
Indexed on
2010/04/21
23:53 UTC
Read the original article
Hit count: 289
I have a problem where I am storing a UTF8 string in SQL Server as USC2, when I pull it out to display on a page with content-type set to UTF-8 it works fine. But I have a third party javascript component which when I pass it the string for the database it renders it as USC2. or not UTF8.
Is there a way in ASP to convert this string to UTF-8 after reading it from the database to pass it to the third party component ( obfuscated ) .
Hope this makes sense.
© Stack Overflow or respective owner