Merge pull request #5975 from codingCoffee/csvutils
[fix] error while importing csv file
This commit is contained in:
commit
6cc5547eca
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ def read_csv_content(fcontent, ignore_encoding=False):
|
|||
fcontent = fcontent.encode("utf-8")
|
||||
content = [ ]
|
||||
for line in fcontent.splitlines(True):
|
||||
content.append(line)
|
||||
if six.PY2:
|
||||
content.append(line)
|
||||
else:
|
||||
content.append(frappe.safe_decode(line))
|
||||
|
||||
try:
|
||||
rows = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue