                         for row in csvArray {
                             // Get the CSV headers
                             if((row as! String).contains(csvArray[0] as! String)) {
-                                fieldsArray = self.splitUsingDelimiter(row as! String, separatedBy: ",") as NSArray;
+                                fieldsArray = self.splitUsingDelimiter(row as! String, separatedBy: divider?.rawValue ?? ",") as NSArray;
                             } else {
                                 // Get the CSV values
-                                let valuesArray = self.splitUsingDelimiter(row as! String, separatedBy: ",") as NSArray;
+                                let valuesArray = self.splitUsingDelimiter(row as! String, separatedBy: divider?.rawValue ?? ",") as NSArray;
                                 if valuesArray.count == fieldsArray.count  && valuesArray.count > 0{
                                     let rowJson:NSMutableDictionary = self.generateDict(fieldsArray, valuesArray: valuesArray)
                                     if rowJson.allKeys.count > 0 && valuesArray.count == rowJson.allKeys.count && rowJson.allKeys.count == fieldsArray.count {

    //The CSV encodeing format
    open var encodingType:String.Encoding = String.Encoding.utf8;
    
    
    ///export singleton
    open class var export: CSVExport {

                    if let value = dictionary.object(forKey: key) {
                        if let string = value as? String {
                            // obj is a String. Do something with str
                            if result.count == 0 {
                                result = "\"\(string)\""
                            } else {
                                result = "\(result),\"\(string)\""
                            }
                        } else {
                            if result.count == 0 {
                                result = "\(value)"
                            } else {
                                result = "\(result),\(value)"
