Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Unicode conversion

    Hello

    I am experiencing a problem in developing an ASP.NET application which
    will run in tandem with an existing "classic" ASP app. Some users of
    the ASP app are entering text in their native languages (japanese and
    chinese) using native code pages (eg Big5 and shift_jis). The
    webserver and SQL server are both english. The problem is that for our
    ASP.NET app we want all text stored on the DB (nvarchar) as unicode,
    but the ASP app writes the data as a unicode reprentation of the
    native code page, and not as the actual . For example, if a single
    japanese character, say unicode char 39640, is captured via a textbox
    on an ASP page, the resulting string, although it is unicode, contains
    the two bytes 130 and 141 which are the 2 bytes of the shift_jis
    codepage which map to the unicode char 39640, resulting in incorrect
    (from our ASP.NET apps point of view) storage on in the db.

    So, my question is: how in vbscript/ASP/ADO can we take the text from
    a standard html text box encoded in its native code page and convert
    that to unicode for storage on the db ?

    Thanks in advance
    Rob
    Rob Guest

  2. Similar Questions and Discussions

    1. Unicode
      I need your advise upon the issue we are facing in the Webexceller application. We have an application that supports the local languages (korean...
    2. To Use Unicode or not?
      I am posting this to hopefully help someone else with the same problem(s) and maybe get an answer? I recenlty updated from 4.5 to 6.1 and have...
    3. PHP and Unicode
      Hi, I'm building a website that will use Unicode data. Back-end using PHP and SQL Server. The SQl Server database will store Unicode data...
    4. RubyDotNet Unicode string conversion
      Hi, As far as I know Ruby 1.8.0 is not Unicode. ..NET uses Unicode for Strings. Running in IRB require 'dotnet' loadLibrary 'System.IO' dir...
    5. Convert UFT-8 to unicode?
      Hi, my CGI script receives UTF-8 strings, like "0xE2 0x82 0xAC" for the Euro symbol. However, the unicode for this symbol is 0x20AC. How...
  3. #2

    Default Re: Unicode conversion

    Hello, can anyone offer any advice on this ?
    > Hello
    >
    > I am experiencing a problem in developing an ASP.NET application which
    > will run in tandem with an existing "classic" ASP app. Some users of
    > the ASP app are entering text in their native languages (japanese and
    > chinese) using native code pages (eg Big5 and shift_jis). The
    > webserver and SQL server are both english. The problem is that for our
    > ASP.NET app we want all text stored on the DB (nvarchar) as unicode,
    > but the ASP app writes the data as a unicode reprentation of the
    > native code page, and not as the actual . For example, if a single
    > japanese character, say unicode char 39640, is captured via a textbox
    > on an ASP page, the resulting string, although it is unicode, contains
    > the two bytes 130 and 141 which are the 2 bytes of the shift_jis
    > codepage which map to the unicode char 39640, resulting in incorrect
    > (from our ASP.NET apps point of view) storage on in the db.
    >
    > So, my question is: how in vbscript/ASP/ADO can we take the text from
    > a standard html text box encoded in its native code page and convert
    > that to unicode for storage on the db ?
    >
    > Thanks in advance
    > Rob
    Rob Guest

  4. #3

    Default Re: Unicode conversion

    Rob wrote:
    > Hello, can anyone offer any advice on this ?
    >
    >> Hello
    >>
    >> I am experiencing a problem in developing an ASP.NET application
    >> which will run in tandem with an existing "classic" ASP app. Some
    >> users of the ASP app are entering text in their native languages
    >> (japanese and chinese) using native code pages (eg Big5 and
    >> shift_jis). The webserver and SQL server are both english. The
    >> problem is that for our ASP.NET app we want all text stored on the
    >> DB (nvarchar) as unicode, but the ASP app writes the data as a
    >> unicode reprentation of the native code page, and not as the actual
    >> . For example, if a single japanese character, say unicode char
    >> 39640, is captured via a textbox on an ASP page, the resulting
    >> string, although it is unicode, contains the two bytes 130 and 141
    >> which are the 2 bytes of the shift_jis codepage which map to the
    >> unicode char 39640, resulting in incorrect (from our ASP.NET apps
    >> point of view) storage on in the db.
    >>
    >> So, my question is: how in vbscript/ASP/ADO can we take the text from
    >> a standard html text box encoded in its native code page and convert
    >> that to unicode for storage on the db ?
    >>
    >> Thanks in advance
    >> Rob
    It's the weekend here, so many of us aren't areound as much as we are during
    the week. Be patient.

    Unfortunately, I don't know the answer to your question. Have you tried
    asking on one of the dotnet newsgroups?

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  5. #4

    Default Re: Unicode conversion

    Hello ! ! !

    Can anyone help with this ? I have tried on the dotnet groups, but it
    seems to be specifically an issue with ASP, and since I know little
    about ASP, any advise would be very welcome.

    Thanks
    Rob
    > Rob wrote:
    > > Hello, can anyone offer any advice on this ?
    > >
    > >> Hello
    > >>
    > >> I am experiencing a problem in developing an ASP.NET application
    > >> which will run in tandem with an existing "classic" ASP app. Some
    > >> users of the ASP app are entering text in their native languages
    > >> (japanese and chinese) using native code pages (eg Big5 and
    > >> shift_jis). The webserver and SQL server are both english. The
    > >> problem is that for our ASP.NET app we want all text stored on the
    > >> DB (nvarchar) as unicode, but the ASP app writes the data as a
    > >> unicode reprentation of the native code page, and not as the actual
    > >> . For example, if a single japanese character, say unicode char
    > >> 39640, is captured via a textbox on an ASP page, the resulting
    > >> string, although it is unicode, contains the two bytes 130 and 141
    > >> which are the 2 bytes of the shift_jis codepage which map to the
    > >> unicode char 39640, resulting in incorrect (from our ASP.NET apps
    > >> point of view) storage on in the db.
    > >>
    > >> So, my question is: how in vbscript/ASP/ADO can we take the text from
    > >> a standard html text box encoded in its native code page and convert
    > >> that to unicode for storage on the db ?
    > >>
    > >> Thanks in advance
    > >> Rob
    >
    > It's the weekend here, so many of us aren't areound as much as we are during
    > the week. Be patient.
    >
    > Unfortunately, I don't know the answer to your question. Have you tried
    > asking on one of the dotnet newsgroups?
    >
    > Bob Barrows
    Rob Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139