|
> > >As far as I can tell, you HTML doesn't have any notion of
fields. If you > >mean the letters Peh, Gaf, Farsi Yeh, etc,
they can be referenced in HTML > > >pages as
"&#x"+hexcode+";". Farsi Yeh becomes "ی", for
example. > > > > OK I knew this, but I want to know
when we want to represent a database > > unicode field in an ASP
page(finally an HTML formatted page) is any more > > efficient
way than converting them dynamically from Unicode to HTML > >
entity code. > > I'm sorry I don't know ASP. But you can also
use UTF-8 in your HTML page > and encode the Persian letters as two
bytes. Farsi Yeh becomes 0xDB 0x8C, > for example.
>
roozbeh
ASP works very well while using unicode fields in SQL Server.
Use following style for your asp page to make your page in UTF-8 . No
conversion is needed to use. The most important part is the first line.The
output of this ASP page will be like as Roozbeh said . It will not use
"&#x"+hexcode+";" style.
--------------------------------------------
<%@LANGUAGE="VBSCRIPT"
CODEPAGE="65001"%> <html lang="fa" dir="rtl">
<head> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"> </head>
<% Response.Write(put your database field here) %>
<body>
</body> </html>
--------------------------------------------
Best Regards
Jalal Abedinejad |