joannesguillemot / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

files skipped if header has a copyright symbol: © #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add symbol © in file header (top)
2.
3.

What is the expected output? What do you see instead?
advance search will skip files with this symbol.

What version of the product are you using? On what operating system?
3.5.0

Please provide any additional information below.

Original issue reported on code.google.com by fabrice....@gmail.com on 31 Jul 2012 at 7:36

GoogleCodeExporter commented 8 years ago
It was due to the charset combined with the copyright symbol. The files causing 
problems were iso-8859-1. Changing the way the file are loaded and read in 
advancedfing.py (line 592 and 592) from utf-8 to iso-8859-1 fixed the issue.

Original comment by fabrice....@gmail.com on 1 Aug 2012 at 1:14

GoogleCodeExporter commented 8 years ago
Thanks for your information, but I don't think it can solve the problem.
The problem will happen in files that using other encodings.

Any idea how can I detect the encoding setting of a file before open it?

Original comment by swatch.c...@gmail.com on 5 Aug 2012 at 4:53