astropy/astropy — pull request #2002 by mdboom (2014-01-27 16:56:23+00:00)
Title: Encoding error when using volint

I tried using volint on a VO table from Vizier and got an encoding error:

```
$ volint http://mpia.de/~robitaille/vizier_votable.vot
Downloading http://mpia.de/~robitaille/vizier_votable.vot
|==========================================================================================================================================================================| 18k/ 18k (100.00%) 00s
Validation report for http://mpia.de/~robitaille/vizier_votable.vot

54: W27: COOSYS deprecated in VOTable 1.2

^

124: W49: Empty cell illegal for integer fields.
Traceback (most recent call last):
File "/Users/tom/Library/Python/2.7/bin/volint", line 5, in
pkg_resources.run_script('astropy==0.4.dev6985', 'volint')
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/EGG-INFO/scripts/volint", line 5, in
astropy.io.votable.volint.main()
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/astropy/io/votable/volint.py", line 18, in main
table.validate(args.filename[0])
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/astropy/io/votable/table.py", line 276, in validate
print_code_line(line, w['nchar'], file=output)
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/astropy/utils/console.py", line 860, in print_code_line
color_print('…', 'darkgrey', file=file, end='')
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/astropy/utils/console.py", line 261, in color_print
write = _write_with_fallback(msg, write, file)
File "/Users/tom/Library/Python/2.7/lib/python/site-packages/astropy-0.4.dev6985-py2.7-macosx-10.8-x86_64.egg/astropy/utils/console.py", line 204, in _write_with_fallback
write(s)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 7: ordinal not in range(256)
```