How can I convert a windows-1255 string to utf-8 in classic ASP? My database is windows-1255 and I want to transfer my site to utf-8.
相关问题
- WebElement.getText() function and utf8
- How to convert a string to a byte array which is c
- If condition not working in classic ASP
- Character Encoding in iframes
- Including decimal equivalent of a char in a charac
相关文章
- iconv() Vs. utf8_encode()
- When sending XML to JMS should I use TextMessage o
- Spanish Characters in HTML Page Title
- Google app engine datastore string encoding proble
- Can a VBScript function return a dictionary?
- How can i get know that my String contains diacrit
- Base64 Encoding: Illegal base64 character 3c
- ZURB Foundation, switching tab programmatically
Are you sure you need to do any conversion. Whilst your database may store the string in a particular encoding, ordinarily ADODB/OLEDB will deliver the string to VBScript/JScript running in a ASP page as unicode (since actually the script languages only support unicode its actually possible to have any other encoding).
Hence if your output needs to be UTF-8 you need to do this:-
If this doesn't appear to work for you then I suspect you've fallen foul of the Gotcha I describe in my answer that Codebender has linked to.
Does the code in this answer do what you need?