I was using Frontpage to display my data from MS Access, but am now writing the ASP myself. I find when I use Frontpage my Unicode font displays correctly, but not when I write my own code (using Getrows). Why is this? Here is the sort of code that does not work (displaying the field 'Greekword' ina form textbox):
<% 'Establish recordset for form population
DIM mySQL, myDSN, conntemp, objConn, objRS
' Put SQL next
mySQL = "SELECT HeadwordID, Headword, Greekword, DescriptionID FROM tblHeadword Where HeadwordID=" &Request("HeadwordID"
' Connect to DB
Set conntemp = Server.CreateObject("ADODB.Connection"
myDSN = Application("Database2_ConnectionString"
conntemp.Open myDSN
'Establish RS
set objRS = conntemp.execute (mySQL)
%>
<align="center"><align="center">
<form METHOD="POST" action="<%=Request("SCRIPT_NAME"%>?a=v">
<input TYPE="Hidden" NAME="DescriptionID" VALUE="<%=objRS("DescriptionID"%>">
<table BORDER="0" width="643">
<tr>
<td width="131"><B>Word ID:</B></td>
<td width="178">
<input NAME="HeadwordID" SIZE="4" VALUE="<%=objRS("HeadwordID"%>" tabindex="1"></td>
<td width="320">
<B>Semantic field:
<A href="newsemantics.asp?" onclick="NewWindow(this.href,'newsemantics','500','300','no','center');return false" onfocus="this.blur()">
<FONT size="2">Add to list</FONT></A></B>
</td>
</tr>
<tr>
<td width="131"><B>Greek word:</B></td>
<td width="178">
<align="center">
<input NAME="Greekword" SIZE="40" VALUE="<%=objRS("Greekword"%>" style="font-size:10pt; font-family:Arial Unicode MS"></td>
<form>
Thanks for any help!
<% 'Establish recordset for form population
DIM mySQL, myDSN, conntemp, objConn, objRS
' Put SQL next
mySQL = "SELECT HeadwordID, Headword, Greekword, DescriptionID FROM tblHeadword Where HeadwordID=" &Request("HeadwordID"
' Connect to DB
Set conntemp = Server.CreateObject("ADODB.Connection"
myDSN = Application("Database2_ConnectionString"
conntemp.Open myDSN
'Establish RS
set objRS = conntemp.execute (mySQL)
%>
<align="center"><align="center">
<form METHOD="POST" action="<%=Request("SCRIPT_NAME"%>?a=v">
<input TYPE="Hidden" NAME="DescriptionID" VALUE="<%=objRS("DescriptionID"%>">
<table BORDER="0" width="643">
<tr>
<td width="131"><B>Word ID:</B></td>
<td width="178">
<input NAME="HeadwordID" SIZE="4" VALUE="<%=objRS("HeadwordID"%>" tabindex="1"></td>
<td width="320">
<B>Semantic field:
<A href="newsemantics.asp?" onclick="NewWindow(this.href,'newsemantics','500','300','no','center');return false" onfocus="this.blur()">
<FONT size="2">Add to list</FONT></A></B>
</td>
</tr>
<tr>
<td width="131"><B>Greek word:</B></td>
<td width="178">
<align="center">
<input NAME="Greekword" SIZE="40" VALUE="<%=objRS("Greekword"%>" style="font-size:10pt; font-family:Arial Unicode MS"></td>
<form>
Thanks for any help!