Russian, Unicode and ASP

J

James Lattanzio

Dear Anyone,

I have an ASP file that must print a letter in multiple languages,
including Russian and Korean. When I put the Russian characters in the asp
page and then try to save the file, Visual Interdev objects and tells me to
save the file as a Unicode ASP file. I do this, but then when I try to run
the file the IIS server complains that it cannot run a Unicode ASP page.

To get around this I tried to read the Russian from a SQL Server table
and insert it in the letter using a Response.Write command. The printer
couldn't recognize the characters and printed question instead.

Any ideas on how to resolve this?

Thank you.

James Lattanzio
 
M

Mark Schupp

First make sure that the characters are correct in SQL Server. Then set the
ASP codepage to utf-8 before the response.write.

session.codepage=65001

you may also need to tell the browser to use utf-8 with either an HTML meta
tag

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

or by writing the content-type header with response.addheader
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top