diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-09-19 23:51:48 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-09-19 23:51:48 -0400 |
| commit | 2c60ce9233c7a3960c8c4e057ecc510e11b275e1 (patch) | |
| tree | fb3e84aad777355b43bbdd6e6845ad5840d8ffe1 /tablib/core.py | |
| parent | 649c7e8bb70f55c8046e73fd38f75ba7de52e87e (diff) | |
| download | tablib-2c60ce9233c7a3960c8c4e057ecc510e11b275e1.tar.gz | |
String decoding to avoid unicode collisions for XLS output.
Diffstat (limited to 'tablib/core.py')
| -rw-r--r-- | tablib/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/core.py b/tablib/core.py index 658fd10..7419d69 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -189,7 +189,7 @@ class Dataset(object): ws = wb.add_sheet(self.title if self.title else 'Tabbed Dataset') for i, row in enumerate(self._package(dicts=False)): for j, col in enumerate(row): - ws.write(i, j, str(col)) + ws.write(i, j, col.decode('utf8')) wb.save(stream) return stream.getvalue() |
