473,394 Members | 1,841 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,394 software developers and data experts.

Unicode store in ASP.NET

I've been recently trying to store unicode text (Farsi text) into an nvarchar column in SQL Server, using Visual Basic .NET (in an ASP.NET application). When I try to enter the data directly, from within Visual Studio .NET through the use of Server Explorer, the unicode text is stored correctly, but When I try to do the same thing executing an INSERT statement (using SqlConnection and SqlCommand objects), the data is not stored correctly. The unicode text is then displayed as question marks. Your help would be of great importance.
Nov 18 '05 #1
1 1605
There may be someone better to answer this, but I used to work with Farsi
and several other langs in Classic ASP. I remember I had to have the
metatags identical on form page and display pages. So if the metatag for
the input is "UTF-8" going in, that's what it has to be going out.

Hope this helps, but as I said, I've only worked with Classic ASP on this
type of issue (so far).
Andrea
"Homayoon" <Ho******@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com...
I've been recently trying to store unicode text (Farsi text) into an

nvarchar column in SQL Server, using Visual Basic .NET (in an ASP.NET
application). When I try to enter the data directly, from within Visual
Studio .NET through the use of Server Explorer, the unicode text is stored
correctly, but When I try to do the same thing executing an INSERT statement
(using SqlConnection and SqlCommand objects), the data is not stored
correctly. The unicode text is then displayed as question marks. Your help
would be of great importance.
Nov 18 '05 #2

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

Similar topics

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...
6
by: peter pilsl | last post by:
postgres 7.3.2 I store unicode-data in postgresql. The data is retrieved via webinterfaces, processed with perl and then stored in postgresql (and viceversa). All is going nice with one...
3
by: qushui_chen | last post by:
I store the MSSqlServer is Nvarchar(unicode), the store data as "我就是我文本", How can i decode in C#?
1
by: anantvrana | last post by:
Hello All, I am trying to read Unicode (Kanji character) data from a text file. When I store unicode data into variable my Kanji character gets messed up. I am using following code Open...
6
by: John Sidney-Woollett | last post by:
Hi I need to store accented characters in a postgres (7.4) database, and access the data (mostly) using the postgres JDBC driver (from a web app). Does anyone know if: 1) Is there a...
4
by: David Pratt | last post by:
Hi. I am working through some tutorials on unicode and am hoping that someone can help explain this for me. I am on mac platform using python 2.4.1 at the moment. I am experimenting with unicode...
6
by: ygao | last post by:
>>> import sys >>> sys.setdefaultencoding("utf-8") >>> s='\xe9\xab\x98' #this uff-8 string >>> ss=U'\xe9\xab\x98' >>> s '\xe9\xab\x98' >>> ss u'\xe9\xab\x98' >>> how do I get ss from s?
7
by: pattreeya | last post by:
Hello, how can I get the number of byte of the string in python? with "len(string)", it doesn't work to get the size of the string in bytes if I have the unicode string but just the length. (it...
9
by: Jim | last post by:
Hello, I'm trying to write exception-handling code that is OK in the presence of unicode error messages. I seem to have gotten all mixed up and I'd appreciate any un-mixing that anyone can...
6
by: Bill Nguyen | last post by:
Below are sometext I extracted from a mySQL database. How can I decode them so that I can read them in Unicode? Thanks Bill ------------ Virginia Hamilton Adair / Lâm Thị Mỹ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.