Hello Rusabh,
i have tried what u have told me, but there's no luck as it keeps on giving me UTF-8 issue all the time, i am sure that the csv file is utf-8 as i set the encoding to utf-8,
i have even opened the file in notepad and set the encoding as utf-8 and uploaded back , and i have downloaded your file from the github , uploaded it and yet it doesnt work in ar.csv but i tried to import messages from fr.csv , yet it works perfectly, i dont know what is the problem it keeps on throwing the following error:
root@system:/var/www/erpnext# python lib/wnf.py --import_messages ar app/translations/ar.csv
Traceback (most recent call last):
File "lib/wnf.py", line 494, in <module>
run()
File "lib/wnf.py", line 463, in run
webnotes.translate.import_messages(*options.import_messages)
File "/var/www/dafater/lib/webnotes/translate.py", line 245, in import_messages
_update_lang_file('doc')
File "/var/www/dafater/lib/webnotes/translate.py", line 228, in _update_lang_file
langdata = get_lang_data(basepath, lang, mtype)
File "/var/www/dafater/lib/webnotes/translate.py", line 267, in get_lang_data
langdata = json.loads(langfile.read())
File "/usr/lib/python2.7/codecs.py", line 671, in read
return self.reader.read(size)
File "/usr/lib/python2.7/codecs.py", line 477, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte
On Tuesday, 28 May 2013 09:04:06 UTC+3, Syed Qadeer wrote: