...

View Full Version : saving hebrew in asp comes up as ?



esthera
08-24-2007, 02:34 PM
I have a asp page that I have a form and i'm saving the form (using upload but I don't think that should make a difference)
when i output what the field values are and put in hebrew in the field - it always outputs as ?????????

i'm using

<% @ codepage=1255 %>
<% Response.Charset= "windows-1255"%>

what could be the issue?

Daemonspyre
08-24-2007, 06:46 PM
Since Hebrew is NOT a 'standard' True Type font, most browsers can't determine what font to use, if they even have the font installed to display Hebrew characters. Hence, they return ????.

Can you display any Hebrew in your browser at all? If you can, then you may need to consider switching your IIS encoding to UTF-8 rather than UNICODE.

While servers are almost required to use UTF-8, clients (esp. Windows) will only use UNICODE unless told to by the server.

esthera
08-25-2007, 07:30 PM
well I see hebrew in the html

it's just when pulling from the form that i'm having trouble and it's displaying as ???

esthera
08-25-2007, 08:02 PM
i double checked -- it's only when i do an upload that it's having this problem and getting question marks from the form (upload is done through persists)

Daemonspyre
08-27-2007, 05:17 PM
So this is definitely a Server Encoding issue.

Since the ENCTYPE on an upload is MULTIPART/FORM-DATA, that is what is probably destroying your RESPONSE.CHARSET variable.

This may not be something that you can fix. Persits documentation may have something about this, but I doubt it.

Think about splitting the Upload component and the form component into 2 different pages. That may be the only solution that you have to solving this issue.

Have you looked into your IIS server variables and checked to see if you can change the encoding to UTF-8 for your forms, rather than UNICODE?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum