arminfelder / gridfsmigrate

RocketChat GridFS to filesytem migration script
GNU General Public License v3.0
72 stars 23 forks source link

Not working with non English? #7

Open ranqiangjun opened 5 years ago

ranqiangjun commented 5 years ago
Traceback (most recent call last):
  File "./migrate.py", line 232, in <module>
    obj.dumpfiles("rocketchat_uploads", store)
  File "./migrate.py", line 116, in dumpfiles
    upload['name']))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 30-33: ordinal not in range(128)
ranqiangjun commented 5 years ago

BTW, a dirty way to get it working, prepending PYTHONIOENCODING=utf-8 to the commands

ranqiangjun commented 5 years ago

PYTHONIOENCODING=utf-8 works with Chinese, but not working with Vietnamese according to my rocketchat installation.

sennewood commented 3 years ago

It doesn't work with german either (#19).

tamasgal commented 1 year ago

See https://github.com/arminfelder/gridfsmigrate/issues/19#issuecomment-1466268860