Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts

    saving hebrew in asp comes up as ?

    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?

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    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.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts
    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 ???

  • #4
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts
    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)

  • #5
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    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?
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •