dbTalk Databases Forums  

dts import with utf-8?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss dts import with utf-8? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fotis Mylonas
 
Posts: n/a

Default dts import with utf-8? - 09-08-2006 , 07:49 AM






Hallo all,
we have some dts packages on a production sql server, used for to import
text data. My country is Greece so a lot of greek characters are included in
the txt sources.
The organization providing the txts to our application, used to have them in
unicode format (2 bytes per character) and everything was ok.
As it seems so far they sudenly changed to utf 8 or to ansi (1 byte per
character - half size to the file) and now the import process returns error
messages (something like "row delimeter cannot be found")
In the dts designer, i tried to change the expected file format of the input
txt source file, however, i cannot find a "utf-8" option in the txt source
component at the dts designer.
The only options available are "unicode", "ansi" and "oem". None of all
these works, the unicode option doesn't work at all, the other two doesnt
display or interpret greek corectly.
Anyone else faced same issues?
im Looking forward to hearing any sugesstions or any ideas from you on how i
can overcome this issue. Its a production project. i didnt find anything
special on the internet.

Thank you very much,
Fotis Mylonas



Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: dts import with utf-8? - 09-10-2006 , 11:15 AM






Try opening the file in Notepad. Do a File | Save As. In the Encoding
drop-down, choose Unicode. Save to a new file name. Now try importing the
new file.

Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email alias: charles
email domain: kangai.demon.co.uk




"Fotis Mylonas" wrote:

Quote:
Hallo all,
we have some dts packages on a production sql server, used for to import
text data. My country is Greece so a lot of greek characters are included in
the txt sources.
The organization providing the txts to our application, used to have them in
unicode format (2 bytes per character) and everything was ok.
As it seems so far they sudenly changed to utf 8 or to ansi (1 byte per
character - half size to the file) and now the import process returns error
messages (something like "row delimeter cannot be found")
In the dts designer, i tried to change the expected file format of the input
txt source file, however, i cannot find a "utf-8" option in the txt source
component at the dts designer.
The only options available are "unicode", "ansi" and "oem". None of all
these works, the unicode option doesn't work at all, the other two doesnt
display or interpret greek corectly.
Anyone else faced same issues?
im Looking forward to hearing any sugesstions or any ideas from you on how i
can overcome this issue. Its a production project. i didnt find anything
special on the internet.

Thank you very much,
Fotis Mylonas




Reply With Quote
  #3  
Old   
Fotis Mylonas
 
Posts: n/a

Default Re: dts import with utf-8? - 09-12-2006 , 06:31 AM



Thank you very much Charles, but i needed something more automated than
this.
its ok by now, i had to write some manual code to first convert the file
from utf-8 to ansi and then feed it to the dts package. i really think this
should have been an option in the drop down menu of the dts component and
not force me to write a separate application for to do the convertion.

thanks!

"Charles Kangai" <CharlesKangai (AT) discussions (DOT) microsoft.com> wrote

Quote:
Try opening the file in Notepad. Do a File | Save As. In the Encoding
drop-down, choose Unicode. Save to a new file name. Now try importing the
new file.

Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email alias: charles
email domain: kangai.demon.co.uk




"Fotis Mylonas" wrote:

Hallo all,
we have some dts packages on a production sql server, used for to import
text data. My country is Greece so a lot of greek characters are included
in
the txt sources.
The organization providing the txts to our application, used to have them
in
unicode format (2 bytes per character) and everything was ok.
As it seems so far they sudenly changed to utf 8 or to ansi (1 byte per
character - half size to the file) and now the import process returns
error
messages (something like "row delimeter cannot be found")
In the dts designer, i tried to change the expected file format of the
input
txt source file, however, i cannot find a "utf-8" option in the txt
source
component at the dts designer.
The only options available are "unicode", "ansi" and "oem". None of all
these works, the unicode option doesn't work at all, the other two doesnt
display or interpret greek corectly.
Anyone else faced same issues?
im Looking forward to hearing any sugesstions or any ideas from you on
how i
can overcome this issue. Its a production project. i didnt find anything
special on the internet.

Thank you very much,
Fotis Mylonas






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.