May 23, 2023 at 11:54 am
My data csv file sometimes comes in with special characters and French accents too (è ë à ç )
And then this special apostrophe in surnames e.g. O’Brien.
They go in the database as this: O’brien
I am using SSIS for import. Where do I need to make changes to allow these special chars?
The tables have standard varchar Name fields.
Thank you,
V
May 23, 2023 at 12:28 pm
that has to do with what the encoding of the files are, the encoding defined on your SSIS package file definition (and potentially on any transforms you may have on your dataflow) and on your database.
as for what you say goes to your database - how you see them its going to depend on what application you are using to view that data. Again encoding (of database and application) will have a play at that.
May 23, 2023 at 2:14 pm
Thanks, Frederico.
The front-end CRM sees exactly what i see on SQL SSMS too.
e.g. O’brien
The CSV file when I open them in Notepad++, they are in UTF-8 encoding, hence they look fine there.
So, it is just file manager source -SSIS where this needs changing?
What encoding will work for most special characters?
V
May 23, 2023 at 2:37 pm
NVARCHAR is not needed for french characters, neither is a french collation (which does affect ordering but not much more). but SSIS being very picky will require NVARCHAR on destination column, or a transformation on the dataflow to convert from NVARCHAR to VARCHAR
your SSIS file definition will likely need to change as well - see codepage below.
this was extracted from one of my packages that loads UTF-8 files onto staging tables defined as nvarchar - and it is afterwards transferred to varchar columns on final tables without loosing the contents.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply