473,549 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQL AND UNICODE

HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks

Dec 23 '06 #1
3 2229

"Amir Alilou" <am*********@gm ail.comwrote in message
news:11******** *************@f 1g2000cwa.googl egroups.com...
HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks
You may find the samples included with this article helpful.

http://msdn2.microsoft.com/zh-cn/lib...ng(VS.71).aspx
Dec 24 '06 #2

pvdg42 äæÔÊå ÇÓÊ:
"Amir Alilou" <am*********@gm ail.comwrote in message
news:11******** *************@f 1g2000cwa.googl egroups.com...
HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks
You may find the samples included with this article helpful.

http://msdn2.microsoft.com/zh-cn/lib...ng(VS.71).aspx
I see the page you reference me .but the problem is that i want to use
MYSQL in my datagrid in ASP.NET web pages therefor i have datatable
object.if want to do this way i must craete any datatable manually.my
propose is that is there any way like SQLServer for working with
UNICODE in MYSql?

Dec 29 '06 #3
You have to define the character set of our tables as UTF8 or ucs2.

If you are working on already created tables, beware of the character
set of each VARCHAR field.

HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks
Dec 29 '06 #4

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

Similar topics

4
9518
by: Aditya Ivaturi | last post by:
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on the google and it seems I have to build in multibyte support for php and mysql. Mbstring (http://us3.php.net/mbstring) claims to support multiple...
5
3370
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql...
8
5254
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, etc.) What I'd like is something as simple as: CREATE TABLE junk (junklet VARCHAR(2500) CHARACTER SET UTF8)); import MySQLdb, re,urllib
2
3347
by: Vincent Bouret | last post by:
Hi, I have read that Unicode (UTF-8) was not enabled by default in the mysql-4.1.0-alpha binaries. How can I enable it? What should I change in the code to do so? Thanks Vincent
0
2154
by: jerome iffrig | last post by:
Hi, I am willing to setup my MySQL tables so they can hold international strings (English, French, German and Spanish). I understand that Unicode character coding is a good candidate to do so. Currently I use the default character set and it looks like it does not like characters such as "é", "ô" .etc... (they come up as strange characters...
1
4837
by: jrs_14618 | last post by:
Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode I was wondering if anybody has experienced the same issues
3
2286
by: roland.saad | last post by:
Hi Everyone, I have been trying to build a website that has multilingual support using the LAMP setup. I have created tables that store language information and correlate different strings ids with languages. The strings are all VARCHAR with unicode (utf8) encoding. I have tried all the ways that I could think of and I have checked every...
1
5797
by: erikcw | last post by:
Hi, I'm trying to insert some data from an XML file into MySQL. However, while importing one of the files, I got this error: Traceback (most recent call last): File "wa.py", line 304, in ? main() File "wa.py", line 257, in main curHandler.walkData()
3
3023
by: marexposed | last post by:
I've got this error (see the path in last line) db=MySQLdb.connect(host='localhost',use_unicode = True, charset = "Windows-1251",user='root',passwd='12',db='articulos') File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py", line 74, in Connect return Connection(*args, **kwargs) File "C:\Python24\lib\site-packages\MySQLdb\connections.py",...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.