Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How to convert an Unicode string?

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,33214
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> How to convert an Unicode string?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How to convert an Unicode string? - 4/6/2006 10:04:11 PM   
  th2701tt


Posts: 10
Score: 0
Joined: 1/8/2006
Status: offline
Dear members
1. I used strConv function in my ASP page to convert a string to Unicode but it did not understand, the browser showed an error when I tested my page. Anybody knows another function can do this in VBScript? Please tell me how to do.

2. When I test this asp code, the browser did not display exactly unicode string:

<%
Session.CodePage = 65001

strSQL = "SELECT " & strTable & "Thread.Message, " & strTable & "Forum.Forum_ID " & _
             "FROM (" & strTable & "Forum INNER JOIN " & strTable & "Topic ON " & strTable & "Forum.Forum_ID = " & strTable & "Topic.Forum_ID) INNER JOIN "& strTable & "Thread ON " & strTable & "Topic.Topic_ID = " & strTable & "Thread.Topic_ID " & _
             "WHERE " & strTable & "Thread.Thread_ID=" & lngPostID & ";" 

 
Set rsCommon = Server.CreateObject("ADODB.Recordset")
rsCom.Open strSQL, adoCon
strMsg = rsCom("Message")
%>

<html>
<head>
 <meta http-equiv=content-type content="text/html; charset=utf-8">
</head>

<body>
<% = strMsg %>
</body>
</html>


Someone can tell me why it can not display exactly unicode? Please help me. Thanks.

< Message edited by th2701tt -- 4/7/2006 12:33:28 PM >


_____________________________

To my fans!
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> How to convert an Unicode string? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts