Commits

Roberto De Almeida committed 8857bd7

Added fix by Rostislav Kouznetsov.

Comments (0)

Files changed (1)

             if values.shape == (1,): values = values[0]
         else:
             ## text values are encoded via UTF-8, per NetCDF standard
-            values = values.rstrip('\x00').decode('utf-8')
+            values = values.rstrip('\x00').decode('utf-8', 'replace')
         return values
 
     def _pack_begin(self, begin):