Ask a Question related to ASP Database, Design and Development.
-
Rob #1
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
-
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... -
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... -
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... -
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... -
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... -
Rob #2
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
> RobRob Guest
-
Bob Barrows #3
Re: Unicode conversion
Rob wrote:
It's the weekend here, so many of us aren't areound as much as we are during> 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
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
-
Rob #4
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 BarrowsRob Guest



Reply With Quote

