Gmansolf / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

weird hidden character at beginning of file when downloaded with "get" #194

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.pull down a correct .tex file from google docs
2.try to run latex on the file

What is the expected output? What do you see instead?
Should work. 
Instead I get: ��\documentclass[12pt,letterpaper,openany]{book}

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
$ google --version
google 0.9.7
$ uname -ra
Linux imhotep 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 
x86_64 GNU/Linux
python-gdata: 2.0.7-0ubuntu2

Please provide any additional information below.
weird character can't be seen in vim.  catting the file keeps the character.  

Original issue reported on code.google.com by tuxg...@gmail.com on 30 Jun 2010 at 5:52

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r357.

Original comment by tom.h.mi...@gmail.com on 24 Jul 2010 at 12:40

GoogleCodeExporter commented 8 years ago
The issue was the unicode byte order marker (BOM). With the version in the 
trunk, you can specify "decode_utf_8 = True" in the config file to decode the 
document that you download, which will get rid of that pesky character.

Let me know if this does or does not work. Thanks!

Original comment by tom.h.mi...@gmail.com on 24 Jul 2010 at 12:44