Click to See Complete Forum and Search --> : is this line correct :


pelegk1
09-15-2003, 08:19 AM
<%@ Language=VBScript CodePage=1255 %>

jrthor2
09-15-2003, 12:53 PM
I believe the code should be

<%@ CODEPAGE = 1255 %>

Tikki
09-15-2003, 02:19 PM
Hello It is Correct. u can write <%@ language=vbscript codepage=1255 %>
but why are u using this codepage? r u trying to save the foreign langauges characters?
thanks

pelegk1
09-16-2003, 01:09 AM
i have a page in hrebrew!
when computers default language set to English(US)
when a person submit's a form in my page
it dosen't sen the hebrew correctly
!
even when when i use CodPage=1255
what 2 do?
thnaks in dvance
peleg

Tikki
09-16-2003, 01:26 PM
Hello pelegk,
Try this:

Step 1: I first set the codepage for each asp page to the codepage for the language you want to display i.e. if it is Arabic set the codepage to =1256.
Step 2:Then I set the meta tag in the html to <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" >.
Step 3:In the insert statement of the sql I prefix the text being passed into the field of the database with an "N" for e.g "INSERT INTO tblName () VALUES (N'""')"
Step 4:Finally to see what has been saved into the database, do a Response.BinaryWrite Server.HTMLEncode(Text) in the asp.
IN the database it gets saved either as square blocks in the case of Japanese or correctly in the case of Arabic.
----- Hope this helps

pelegk1
09-17-2003, 12:45 AM
i will check and tell u how it goes
(i dont need it for sql but for display)

pelegk1
09-17-2003, 01:45 AM
when i did :
CHARSET=utf-8
instead of
CHARSET=windows-1255
i got a holl mess!

pelegk1
09-17-2003, 04:13 AM
ActiveXObject("Microsoft.XMLHTTP");
and maybe the problem is there!
the cars are not sent correctly!