473,395 Members | 2,443 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.

Storing and viewing UTF-8 characters...

Hi,

I have a need to pull information from an Oracle 9.2.1 database. It is
storing UTF-8 characters in a varchar2(33) field. I need to be able to pull
these values out and put them in a SQL Server 2000 version of the table with
the UTF-8 characters intact.

Anyone know how to do this...efficiently? I've tried DTS and the high end
UTF-8 characters get lost in the copy.

Thanks,

CJ
Jul 20 '05 #1
4 15254

"CJ Butcher" <cj@cjbutcher.com> wrote in message
news:1E*******************@newssvr27.news.prodigy. com...
Hi,

I have a need to pull information from an Oracle 9.2.1 database. It is
storing UTF-8 characters in a varchar2(33) field. I need to be able to pull these values out and put them in a SQL Server 2000 version of the table with the UTF-8 characters intact.

Anyone know how to do this...efficiently? I've tried DTS and the high end
UTF-8 characters get lost in the copy.

Thanks,

CJ


This KB article may be helpful:

http://support.microsoft.com/default...b;en-us;232580

Simon
Jul 20 '05 #2
Thanks for the attempted help Simon.

I've read the article before and am able to get UTF-8 characters into SQL,
the problem is getting them directly from Oracle, seems that DTS converts
the characters to UCS-2 during the transfer...and I don't want it to.

Thanks,

CJ
"Simon Hayes" <sq*@hayes.ch> wrote in message
news:40**********@news.bluewin.ch...

"CJ Butcher" <cj@cjbutcher.com> wrote in message
news:1E*******************@newssvr27.news.prodigy. com...
Hi,

I have a need to pull information from an Oracle 9.2.1 database. It is
storing UTF-8 characters in a varchar2(33) field. I need to be able to

pull
these values out and put them in a SQL Server 2000 version of the table

with
the UTF-8 characters intact.

Anyone know how to do this...efficiently? I've tried DTS and the high end UTF-8 characters get lost in the copy.

Thanks,

CJ


This KB article may be helpful:

http://support.microsoft.com/default...b;en-us;232580

Simon

Jul 20 '05 #3
CJ Butcher (cj@cjbutcher.com) writes:
Thanks for the attempted help Simon.

I've read the article before and am able to get UTF-8 characters into SQL,
the problem is getting them directly from Oracle, seems that DTS converts
the characters to UCS-2 during the transfer...and I don't want it to.


Storing Unicode data in SQL Server as UTF-8 is probably not a good idea.
There is no collation that understands UTF-8, so if you could get all
sorts of funny surprises when sorting or comparing UTF-8 data. You could
also get nasty surprises with conversion when retrieving or inserting
data, because the client will think that the data is something else
than what it is.

If you really insist of pushing down the squared peg through the round
hole, your best bet is probably to store the data as binary. Then at
least all bits would be in place, but there would still be a lot to lose.

The way to store Unicode data in SQL Server *is* UTF-16.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #4
I read that many days ago. It was relatively useless.

CJ
"Simon Hayes" <sq*@hayes.ch> wrote in message
news:40**********@news.bluewin.ch...

"CJ Butcher" <cj@cjbutcher.com> wrote in message
news:1E*******************@newssvr27.news.prodigy. com...
Hi,

I have a need to pull information from an Oracle 9.2.1 database. It is
storing UTF-8 characters in a varchar2(33) field. I need to be able to

pull
these values out and put them in a SQL Server 2000 version of the table

with
the UTF-8 characters intact.

Anyone know how to do this...efficiently? I've tried DTS and the high end UTF-8 characters get lost in the copy.

Thanks,

CJ


This KB article may be helpful:

http://support.microsoft.com/default...b;en-us;232580

Simon

Jul 20 '05 #5

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

Similar topics

7
by: Rolf Hemmerling | last post by:
Hello ! Beginner's question: What ist the easiest way to store and save objects in a file generated by a C++ program, by using the "standard C++ library" and/or "Standard Template Library (...
6
by: - jes | last post by:
Greetings. Using CSS, a programmer can set the color for an href link and a different color for a VISITED href link. Anyone know where this "list" of visited links is stored? Is it...
2
by: fizzy | last post by:
i am fetching an xml document with the following structure: <?xml version="1.0" encoding="UTF-8"?> <DTCResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
0
by: George Durzi | last post by:
Hey all, I finally found the necessary resources in the Exchange 2003 SDK to "pull" Contacts out of Exchange and display them on a WebForm. I have been trying to do this forever, and couldn't...
5
by: hfk0 | last post by:
Hi, I'm new to ASP.net, SQL Server and visual studio.net, and I'm having problem inserting and storing data from a web form to a SQL database. I created a simple ASP.NET web form, a simple SQL...
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
1
by: steelghost | last post by:
I'm currently trying to store images into my DB. But the collation used on my DB is big5, since my client wants this default encoding on their webpage. So to be able read the retreived data I have...
4
by: pushpinderbagga | last post by:
hi I need help in storing and retreiving hindi text from myql... I have done the folowwing ... mysql_query("SET NAMES 'utf8'"); <META http-equiv=Content-Type content="text/html;...
15
by: Bexm | last post by:
Hello I have searched through this forum and it seems some people are having similar problems to me but none of the fixes are fixing mine..! :( I have a table in my database that has two xml...
11
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have worked with application settings in VS2005 and C# for awhile, but usually with standard types. I have been trying to store a custom container/class/type in an application setting and I have...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...
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...
0
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,...

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.