473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Textboxes and codepages/unicode

Hi

I am working with a legacy application which uses SQL 2000 and varchar
fields. Its not possible for me to convert the fields at this time to
nvarchars.

So i have converted russian into windows-1251 encoding and stored the
resulting encoded string into the database. I first created this
page in coldfusion and simply inserted

"<META HTTP-EQUIV="Content-Type "CONTENT="text/html;
charset=windows-1251">"

into the head of the document. I was able to add text boxes which
displayed and accepted the right characters and store them back into
the database.

I now need to complete the same project with vb.net.

P1) Textboxes seem to html encode the sting before it reaches the
webpage. Why is this?

For example:

Об инструкторе (Об
инструкторе)

Is acutally being encoded to this by the text box:

Îá íñòðóêòîðå

Why is this? How can i stop it?

P2) Even when i am able to enter in a phrase in russian say
"Об инструкторе"
i get empty string back from the form when its submitted as it appears
to only accept ascii characters. I set up the encoding type of the
response and request to unicode and the codepage to window-1251 this
allows the page to display russian fine when not inside a web control.
Once inside a web control it starts to cause problems.

Could someone please explain to me what i am doing wrong?
Nov 20 '05 #1
0 1010

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: sebastien.hugues | last post by:
Hi I would like to retrieve the application data directory path of the logged user on windows XP. To achieve this goal i use the environment variable APPDATA. The logged user has this name:...
23
by: Hallvard B Furuseth | last post by:
Has someone got a Python routine or module which converts Unicode strings to lowercase (or uppercase)? What I actually need to do is to compare a number of strings in a case-insensitive manner,...
8
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5,...
4
by: webdev | last post by:
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3...
2
by: Neil Schemenauer | last post by:
python-dev@python.org.] The PEP has been rewritten based on a suggestion by Guido to change str() rather than adding a new built-in function. Based on my testing, I believe the idea is...
2
by: Joe Weinstein | last post by:
Hi all. I am debugging a problem where one version of a JDBC driver connects to an AS400 DB2 instance, and another doesn't. I am told to suspect that the DBMS may not accept UTF clients. I have...
4
by: Damon Reissman | last post by:
Hello, I'm trying to use Stephen Leban's RTF2 ActiveX control in an access database with unicode data. In VB, I pass the text value directly from the text box control in a form to the rtf2...
24
by: ChaosKCW | last post by:
Hi I am reading from an oracle database using cx_Oracle. I am writing to a SQLite database using apsw. The oracle database is returning utf-8 characters for euopean item names, ie special...
1
by: Ferdinand Zaubzer | last post by:
Hello, What character encoding is usually used in Textboxes in the .Net Framework? Regards, Ferdinand Zaubzer
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.