iphonecocoa-touchios4character-encodingios-4.2

iPhone: Which encoding scheme should be used in importing CSV file into Sqlite database


In my iPhone app, I am importing CSV file into SQlite database using CHCSV parser.

My CSV file contains data in European Languages containing special characters like umlaut, etc.

Which encoding should I use?

Should it be UTF8StringEncoding or some other encoding scheme?


Solution

  • What encoding is the original file in? Because that's the encoding you should use. CSV doesn't define any specific encoding, so it really depends on how the file was created.