Quantcast
Channel: Active questions tagged feeds - Drupal Answers
Viewing all articles
Browse latest Browse all 185

How to avoid character encoding exceptions that occur when importing CSV data in to MS SQL server?

$
0
0

When I try to import CSV data into my feed, I get errors like this:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[IMSSP]: Anerror occurred translating string for input param 3 to UCS-2: Nomapping for the Unicode character exists in the target multi-byte codepage. : INSERT INTO [watchdog] ([uid], [type], [message], [variables],[severity], [link], [location], [referer], [hostname], [timestamp])OUTPUT (Inserted.wid) VALUES (:db_insert0, :db_insert1, :db_insert2,:db_insert3, :db_insert4, :db_insert5, :db_insert6, :db_insert7,:db_insert8, :db_insert9); Array ( [0] => Array ( [0] => 1 [1] =>feeds [2] => SQLSTATE[IMSSP]: An error occurred translating string forinput param 6 to UCS-2: No mapping for the Unicode character exists inthe target multi-byte code page. : INSERT INTO [node__field_body]([entity_id], [revision_id], [bundle], [delta], [langcode],[field_body_value], [field_body_format]) OUTPUT (1) VALUES(:db_insert0, :db_insert1, :db_insert2, :db_insert3, :db_insert4,:db_insert5, :db_insert6); Array ( [0] => Array ( [0] => 195 [1] =>250 [2] => resource [3] => 0 [4] => en [5] => State departments ofeducation may volunteer to pre-populate local surveys with data. Localschool district can affirm to have this data pre-populated or�opt-out� and complete the CRDC on their own. If they choose to�opt-out� and then change their mind at a later date, this tip sheetshows school districts how to add SEA representatives back into theCRDC system. [6] => plain_text ) )

How should I act on this? The error message seems to indicate that the feeds module wants the character encoding to be UCS-2 -- is that correct? Or are some other characters encodings also acceptable?

Is the issue best addressed in my settings for the feed, for the Feeds module generally, or within the source document?


The database is MSSQL. Though I would rather the project used a LAMP environment, that is not an option for this project.


Viewing all articles
Browse latest Browse all 185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>