diff --git a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java index e69de29bb2..d7f62ea9ed 100644 --- a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java +++ b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java @@ -0,0 +1,8 @@ +/** + * This file is using ISO-8859-1 (Latin-1) encoding. + * + * ä + */ +public class FileWith_ISO8859-1_Encoding { + +} diff --git a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_utf8_bom.java b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_utf8_bom.java index 5f282702bb..566bf55d83 100644 --- a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_utf8_bom.java +++ b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_utf8_bom.java @@ -1 +1,8 @@ - \ No newline at end of file +/** + * This file is using UTF-8 with BOM encoding. + * + * ä + */ +public class FileWith_UTF-8-BOM_Encoding { + +} diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index 0c9779dead..7aa77e58bf 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -18,6 +18,7 @@ * [#27](https://github.com/adangel/pmd/pull/27): Added support for Raw String Literals (C++11). * [#29](https://github.com/adangel/pmd/pull/29): Added support for files with UTF-8 BOM to JSP tokenizer. * [#30](https://github.com/adangel/pmd/pull/30): Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option. +* [#31](https://github.com/adangel/pmd/pull/31): Added file encoding detection to CPD. * [#79](https://github.com/pmd/pmd/pull/79): do not flag public static void main(String[]) as UseVarargs; ignore @Override for UseVarargs * [#80](https://github.com/pmd/pmd/pull/80): Update mvn-plugin.md * [#83](https://github.com/pmd/pmd/pull/83): Adds new Code Climate-compliant JSON renderer