Ensure UTF-8 file encoding

This commit is contained in:
Stian Soiland-Reyes 2016-09-27 10:15:46 +01:00
parent a041518197
commit 86a59601b5
7 changed files with 82 additions and 80 deletions

View File

@ -42,13 +42,13 @@ o LANG-1080: Add NoClassNameToStringStyle implementation of ToStringStyle.
Thanks to Innokenty Shuvalov. Thanks to Innokenty Shuvalov.
o LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method. o LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method.
Thanks to Daniel Stewart. Thanks to Daniel Stewart.
o LANG-1052: Multiline recursive to string style. Thanks to Jan Matèrne. o LANG-1052: Multiline recursive to string style. Thanks to Jan Matèrne.
o LANG-536: Add isSorted() to ArrayUtils. Thanks to James Sawle. o LANG-536: Add isSorted() to ArrayUtils. Thanks to James Sawle.
o LANG-1033: Add StringUtils.countMatches(CharSequence, char) o LANG-1033: Add StringUtils.countMatches(CharSequence, char)
o LANG-1021: Provide methods to retrieve all fields/methods annotated with a o LANG-1021: Provide methods to retrieve all fields/methods annotated with a
specific type. Thanks to Alexander Müller. specific type. Thanks to Alexander Müller.
o LANG-1016: NumberUtils#isParsable method(s). Thanks to o LANG-1016: NumberUtils#isParsable method(s). Thanks to
Juan Pablo Santos Rodríguez. Juan Pablo Santos Rodríguez.
o LANG-999: Add fuzzy String matching logic to StringUtils. Thanks to o LANG-999: Add fuzzy String matching logic to StringUtils. Thanks to
Ben Ripkens. Ben Ripkens.
o LANG-994: Add zero copy read method to StrBuilder. Thanks to o LANG-994: Add zero copy read method to StrBuilder. Thanks to
@ -217,12 +217,12 @@ o LANG-943: Test DurationFormatUtilsTest.testEdgeDuration fails in
o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the
Accessibility of Enclosing Classes Accessibility of Enclosing Classes
o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH. o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH.
Thanks to Sebastian Götz. Thanks to Sebastian Götz.
o LANG-950: FastDateParser does not handle two digit year parsing like o LANG-950: FastDateParser does not handle two digit year parsing like
SimpleDateFormat SimpleDateFormat
o LANG-949: FastDateParserTest.testParses does not test FastDateParser o LANG-949: FastDateParserTest.testParses does not test FastDateParser
o LANG-915: Wrong locale handling in LocaleUtils.toLocale(). o LANG-915: Wrong locale handling in LocaleUtils.toLocale().
Thanks to Sergio Fernández. Thanks to Sergio Fernández.
CHANGES CHANGES
========= =========
@ -317,7 +317,7 @@ o LANG-462: FastDateFormat supports parse methods.
BUG FIXES BUG FIXES
=========== ===========
o LANG-932: Spelling fixes. Thanks to Ville Skyttä. o LANG-932: Spelling fixes. Thanks to Ville Skyttä.
o LANG-929: OctalUnescaper tried to parse all of \279. o LANG-929: OctalUnescaper tried to parse all of \279.
o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero. o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero.
o LANG-905: EqualsBuilder returned true when comparing arrays, even when the o LANG-905: EqualsBuilder returned true when comparing arrays, even when the

View File

@ -572,6 +572,7 @@
<commons.site.path>lang</commons.site.path> <commons.site.path>lang</commons.site.path>
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-lang</commons.scmPubUrl> <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-lang</commons.scmPubUrl>
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
<commons.encoding>utf-8</commons.encoding>
</properties> </properties>

View File

@ -611,7 +611,7 @@ public class StringEscapeUtils {
* escapes. Supports HTML 4.0 entities.</p> * escapes. Supports HTML 4.0 entities.</p>
* *
* <p>For example, the string {@code "&lt;Fran&ccedil;ais&gt;"} * <p>For example, the string {@code "&lt;Fran&ccedil;ais&gt;"}
* will become {@code "<Français>"}</p> * will become {@code "<Français>"}</p>
* *
* <p>If an entity is unrecognized, it is left alone, and inserted * <p>If an entity is unrecognized, it is left alone, and inserted
* verbatim into the result string. e.g. {@code "&gt;&zzzz;x"} will * verbatim into the result string. e.g. {@code "&gt;&zzzz;x"} will

View File

@ -41,12 +41,12 @@ public class EntityArrays {
{"\u00A6", "&brvbar;"}, // broken bar = broken vertical bar {"\u00A6", "&brvbar;"}, // broken bar = broken vertical bar
{"\u00A7", "&sect;"}, // section sign {"\u00A7", "&sect;"}, // section sign
{"\u00A8", "&uml;"}, // diaeresis = spacing diaeresis {"\u00A8", "&uml;"}, // diaeresis = spacing diaeresis
{"\u00A9", "&copy;"}, // © - copyright sign {"\u00A9", "&copy;"}, // © - copyright sign
{"\u00AA", "&ordf;"}, // feminine ordinal indicator {"\u00AA", "&ordf;"}, // feminine ordinal indicator
{"\u00AB", "&laquo;"}, // left-pointing double angle quotation mark = left pointing guillemet {"\u00AB", "&laquo;"}, // left-pointing double angle quotation mark = left pointing guillemet
{"\u00AC", "&not;"}, // not sign {"\u00AC", "&not;"}, // not sign
{"\u00AD", "&shy;"}, // soft hyphen = discretionary hyphen {"\u00AD", "&shy;"}, // soft hyphen = discretionary hyphen
{"\u00AE", "&reg;"}, // ® - registered trademark sign {"\u00AE", "&reg;"}, // ® - registered trademark sign
{"\u00AF", "&macr;"}, // macron = spacing macron = overline = APL overbar {"\u00AF", "&macr;"}, // macron = spacing macron = overline = APL overbar
{"\u00B0", "&deg;"}, // degree sign {"\u00B0", "&deg;"}, // degree sign
{"\u00B1", "&plusmn;"}, // plus-minus sign = plus-or-minus sign {"\u00B1", "&plusmn;"}, // plus-minus sign = plus-or-minus sign
@ -64,70 +64,70 @@ public class EntityArrays {
{"\u00BD", "&frac12;"}, // vulgar fraction one half = fraction one half {"\u00BD", "&frac12;"}, // vulgar fraction one half = fraction one half
{"\u00BE", "&frac34;"}, // vulgar fraction three quarters = fraction three quarters {"\u00BE", "&frac34;"}, // vulgar fraction three quarters = fraction three quarters
{"\u00BF", "&iquest;"}, // inverted question mark = turned question mark {"\u00BF", "&iquest;"}, // inverted question mark = turned question mark
{"\u00C0", "&Agrave;"}, // À - uppercase A, grave accent {"\u00C0", "&Agrave;"}, // À - uppercase A, grave accent
{"\u00C1", "&Aacute;"}, // Á - uppercase A, acute accent {"\u00C1", "&Aacute;"}, // Á - uppercase A, acute accent
{"\u00C2", "&Acirc;"}, // Â - uppercase A, circumflex accent {"\u00C2", "&Acirc;"}, // Â - uppercase A, circumflex accent
{"\u00C3", "&Atilde;"}, // Ã - uppercase A, tilde {"\u00C3", "&Atilde;"}, // Ã - uppercase A, tilde
{"\u00C4", "&Auml;"}, // Ä - uppercase A, umlaut {"\u00C4", "&Auml;"}, // Ä - uppercase A, umlaut
{"\u00C5", "&Aring;"}, // Å - uppercase A, ring {"\u00C5", "&Aring;"}, // Å - uppercase A, ring
{"\u00C6", "&AElig;"}, // Æ - uppercase AE {"\u00C6", "&AElig;"}, // Æ - uppercase AE
{"\u00C7", "&Ccedil;"}, // Ç - uppercase C, cedilla {"\u00C7", "&Ccedil;"}, // Ç - uppercase C, cedilla
{"\u00C8", "&Egrave;"}, // È - uppercase E, grave accent {"\u00C8", "&Egrave;"}, // È - uppercase E, grave accent
{"\u00C9", "&Eacute;"}, // É - uppercase E, acute accent {"\u00C9", "&Eacute;"}, // É - uppercase E, acute accent
{"\u00CA", "&Ecirc;"}, // Ê - uppercase E, circumflex accent {"\u00CA", "&Ecirc;"}, // Ê - uppercase E, circumflex accent
{"\u00CB", "&Euml;"}, // Ë - uppercase E, umlaut {"\u00CB", "&Euml;"}, // Ë - uppercase E, umlaut
{"\u00CC", "&Igrave;"}, // Ì - uppercase I, grave accent {"\u00CC", "&Igrave;"}, // Ì - uppercase I, grave accent
{"\u00CD", "&Iacute;"}, // Í - uppercase I, acute accent {"\u00CD", "&Iacute;"}, // Í - uppercase I, acute accent
{"\u00CE", "&Icirc;"}, // Î - uppercase I, circumflex accent {"\u00CE", "&Icirc;"}, // Î - uppercase I, circumflex accent
{"\u00CF", "&Iuml;"}, // Ï - uppercase I, umlaut {"\u00CF", "&Iuml;"}, // Ï - uppercase I, umlaut
{"\u00D0", "&ETH;"}, // Ð - uppercase Eth, Icelandic {"\u00D0", "&ETH;"}, // Ð - uppercase Eth, Icelandic
{"\u00D1", "&Ntilde;"}, // Ñ - uppercase N, tilde {"\u00D1", "&Ntilde;"}, // Ñ - uppercase N, tilde
{"\u00D2", "&Ograve;"}, // Ò - uppercase O, grave accent {"\u00D2", "&Ograve;"}, // Ò - uppercase O, grave accent
{"\u00D3", "&Oacute;"}, // Ó - uppercase O, acute accent {"\u00D3", "&Oacute;"}, // Ó - uppercase O, acute accent
{"\u00D4", "&Ocirc;"}, // Ô - uppercase O, circumflex accent {"\u00D4", "&Ocirc;"}, // Ô - uppercase O, circumflex accent
{"\u00D5", "&Otilde;"}, // Õ - uppercase O, tilde {"\u00D5", "&Otilde;"}, // Õ - uppercase O, tilde
{"\u00D6", "&Ouml;"}, // Ö - uppercase O, umlaut {"\u00D6", "&Ouml;"}, // Ö - uppercase O, umlaut
{"\u00D7", "&times;"}, // multiplication sign {"\u00D7", "&times;"}, // multiplication sign
{"\u00D8", "&Oslash;"}, // Ø - uppercase O, slash {"\u00D8", "&Oslash;"}, // Ø - uppercase O, slash
{"\u00D9", "&Ugrave;"}, // Ù - uppercase U, grave accent {"\u00D9", "&Ugrave;"}, // Ù - uppercase U, grave accent
{"\u00DA", "&Uacute;"}, // Ú - uppercase U, acute accent {"\u00DA", "&Uacute;"}, // Ú - uppercase U, acute accent
{"\u00DB", "&Ucirc;"}, // Û - uppercase U, circumflex accent {"\u00DB", "&Ucirc;"}, // Û - uppercase U, circumflex accent
{"\u00DC", "&Uuml;"}, // Ü - uppercase U, umlaut {"\u00DC", "&Uuml;"}, // Ü - uppercase U, umlaut
{"\u00DD", "&Yacute;"}, // Ý - uppercase Y, acute accent {"\u00DD", "&Yacute;"}, // Ý - uppercase Y, acute accent
{"\u00DE", "&THORN;"}, // Þ - uppercase THORN, Icelandic {"\u00DE", "&THORN;"}, // Þ - uppercase THORN, Icelandic
{"\u00DF", "&szlig;"}, // ß - lowercase sharps, German {"\u00DF", "&szlig;"}, // ß - lowercase sharps, German
{"\u00E0", "&agrave;"}, // à - lowercase a, grave accent {"\u00E0", "&agrave;"}, // à - lowercase a, grave accent
{"\u00E1", "&aacute;"}, // á - lowercase a, acute accent {"\u00E1", "&aacute;"}, // á - lowercase a, acute accent
{"\u00E2", "&acirc;"}, // â - lowercase a, circumflex accent {"\u00E2", "&acirc;"}, // â - lowercase a, circumflex accent
{"\u00E3", "&atilde;"}, // ã - lowercase a, tilde {"\u00E3", "&atilde;"}, // ã - lowercase a, tilde
{"\u00E4", "&auml;"}, // ä - lowercase a, umlaut {"\u00E4", "&auml;"}, // ä - lowercase a, umlaut
{"\u00E5", "&aring;"}, // å - lowercase a, ring {"\u00E5", "&aring;"}, // å - lowercase a, ring
{"\u00E6", "&aelig;"}, // æ - lowercase ae {"\u00E6", "&aelig;"}, // æ - lowercase ae
{"\u00E7", "&ccedil;"}, // ç - lowercase c, cedilla {"\u00E7", "&ccedil;"}, // ç - lowercase c, cedilla
{"\u00E8", "&egrave;"}, // è - lowercase e, grave accent {"\u00E8", "&egrave;"}, // è - lowercase e, grave accent
{"\u00E9", "&eacute;"}, // é - lowercase e, acute accent {"\u00E9", "&eacute;"}, // é - lowercase e, acute accent
{"\u00EA", "&ecirc;"}, // ê - lowercase e, circumflex accent {"\u00EA", "&ecirc;"}, // ê - lowercase e, circumflex accent
{"\u00EB", "&euml;"}, // ë - lowercase e, umlaut {"\u00EB", "&euml;"}, // ë - lowercase e, umlaut
{"\u00EC", "&igrave;"}, // ì - lowercase i, grave accent {"\u00EC", "&igrave;"}, // ì - lowercase i, grave accent
{"\u00ED", "&iacute;"}, // í - lowercase i, acute accent {"\u00ED", "&iacute;"}, // í - lowercase i, acute accent
{"\u00EE", "&icirc;"}, // î - lowercase i, circumflex accent {"\u00EE", "&icirc;"}, // î - lowercase i, circumflex accent
{"\u00EF", "&iuml;"}, // ï - lowercase i, umlaut {"\u00EF", "&iuml;"}, // ï - lowercase i, umlaut
{"\u00F0", "&eth;"}, // ð - lowercase eth, Icelandic {"\u00F0", "&eth;"}, // ð - lowercase eth, Icelandic
{"\u00F1", "&ntilde;"}, // ñ - lowercase n, tilde {"\u00F1", "&ntilde;"}, // ñ - lowercase n, tilde
{"\u00F2", "&ograve;"}, // ò - lowercase o, grave accent {"\u00F2", "&ograve;"}, // ò - lowercase o, grave accent
{"\u00F3", "&oacute;"}, // ó - lowercase o, acute accent {"\u00F3", "&oacute;"}, // ó - lowercase o, acute accent
{"\u00F4", "&ocirc;"}, // ô - lowercase o, circumflex accent {"\u00F4", "&ocirc;"}, // ô - lowercase o, circumflex accent
{"\u00F5", "&otilde;"}, // õ - lowercase o, tilde {"\u00F5", "&otilde;"}, // õ - lowercase o, tilde
{"\u00F6", "&ouml;"}, // ö - lowercase o, umlaut {"\u00F6", "&ouml;"}, // ö - lowercase o, umlaut
{"\u00F7", "&divide;"}, // division sign {"\u00F7", "&divide;"}, // division sign
{"\u00F8", "&oslash;"}, // ø - lowercase o, slash {"\u00F8", "&oslash;"}, // ø - lowercase o, slash
{"\u00F9", "&ugrave;"}, // ù - lowercase u, grave accent {"\u00F9", "&ugrave;"}, // ù - lowercase u, grave accent
{"\u00FA", "&uacute;"}, // ú - lowercase u, acute accent {"\u00FA", "&uacute;"}, // ú - lowercase u, acute accent
{"\u00FB", "&ucirc;"}, // û - lowercase u, circumflex accent {"\u00FB", "&ucirc;"}, // û - lowercase u, circumflex accent
{"\u00FC", "&uuml;"}, // ü - lowercase u, umlaut {"\u00FC", "&uuml;"}, // ü - lowercase u, umlaut
{"\u00FD", "&yacute;"}, // ý - lowercase y, acute accent {"\u00FD", "&yacute;"}, // ý - lowercase y, acute accent
{"\u00FE", "&thorn;"}, // þ - lowercase thorn, Icelandic {"\u00FE", "&thorn;"}, // þ - lowercase thorn, Icelandic
{"\u00FF", "&yuml;"}, // ÿ - lowercase y, umlaut {"\u00FF", "&yuml;"}, // ÿ - lowercase y, umlaut
}; };
/** /**

View File

@ -0,0 +1 @@
AddCharset utf-8 .txt .html

View File

@ -84,12 +84,12 @@ o LANG-943: Test DurationFormatUtilsTest.testEdgeDuration fails in
o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the
Accessibility of Enclosing Classes Accessibility of Enclosing Classes
o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH. o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH.
Thanks to Sebastian Götz. Thanks to Sebastian Götz.
o LANG-950: FastDateParser does not handle two digit year parsing like o LANG-950: FastDateParser does not handle two digit year parsing like
SimpleDateFormat SimpleDateFormat
o LANG-949: FastDateParserTest.testParses does not test FastDateParser o LANG-949: FastDateParserTest.testParses does not test FastDateParser
o LANG-915: Wrong locale handling in LocaleUtils.toLocale(). o LANG-915: Wrong locale handling in LocaleUtils.toLocale().
Thanks to Sergio Fernández. Thanks to Sergio Fernández.
CHANGES CHANGES
========= =========
@ -184,7 +184,7 @@ o LANG-462: FastDateFormat supports parse methods.
BUG FIXES BUG FIXES
=========== ===========
o LANG-932: Spelling fixes. Thanks to Ville Skyttä. o LANG-932: Spelling fixes. Thanks to Ville Skyttä.
o LANG-929: OctalUnescaper tried to parse all of \279. o LANG-929: OctalUnescaper tried to parse all of \279.
o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero. o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero.
o LANG-905: EqualsBuilder returned true when comparing arrays, even when the o LANG-905: EqualsBuilder returned true when comparing arrays, even when the

View File

@ -42,13 +42,13 @@ o LANG-1080: Add NoClassNameToStringStyle implementation of ToStringStyle.
Thanks to Innokenty Shuvalov. Thanks to Innokenty Shuvalov.
o LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method. o LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method.
Thanks to Daniel Stewart. Thanks to Daniel Stewart.
o LANG-1052: Multiline recursive to string style. Thanks to Jan Matèrne. o LANG-1052: Multiline recursive to string style. Thanks to Jan Matèrne.
o LANG-536: Add isSorted() to ArrayUtils. Thanks to James Sawle. o LANG-536: Add isSorted() to ArrayUtils. Thanks to James Sawle.
o LANG-1033: Add StringUtils.countMatches(CharSequence, char) o LANG-1033: Add StringUtils.countMatches(CharSequence, char)
o LANG-1021: Provide methods to retrieve all fields/methods annotated with a o LANG-1021: Provide methods to retrieve all fields/methods annotated with a
specific type. Thanks to Alexander Müller. specific type. Thanks to Alexander Müller.
o LANG-1016: NumberUtils#isParsable method(s). Thanks to o LANG-1016: NumberUtils#isParsable method(s). Thanks to
Juan Pablo Santos Rodríguez. Juan Pablo Santos Rodríguez.
o LANG-999: Add fuzzy String matching logic to StringUtils. Thanks to o LANG-999: Add fuzzy String matching logic to StringUtils. Thanks to
Ben Ripkens. Ben Ripkens.
o LANG-994: Add zero copy read method to StrBuilder. Thanks to o LANG-994: Add zero copy read method to StrBuilder. Thanks to
@ -217,12 +217,12 @@ o LANG-943: Test DurationFormatUtilsTest.testEdgeDuration fails in
o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the o LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the
Accessibility of Enclosing Classes Accessibility of Enclosing Classes
o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH. o LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH.
Thanks to Sebastian Götz. Thanks to Sebastian Götz.
o LANG-950: FastDateParser does not handle two digit year parsing like o LANG-950: FastDateParser does not handle two digit year parsing like
SimpleDateFormat SimpleDateFormat
o LANG-949: FastDateParserTest.testParses does not test FastDateParser o LANG-949: FastDateParserTest.testParses does not test FastDateParser
o LANG-915: Wrong locale handling in LocaleUtils.toLocale(). o LANG-915: Wrong locale handling in LocaleUtils.toLocale().
Thanks to Sergio Fernández. Thanks to Sergio Fernández.
CHANGES CHANGES
========= =========
@ -317,7 +317,7 @@ o LANG-462: FastDateFormat supports parse methods.
BUG FIXES BUG FIXES
=========== ===========
o LANG-932: Spelling fixes. Thanks to Ville Skyttä. o LANG-932: Spelling fixes. Thanks to Ville Skyttä.
o LANG-929: OctalUnescaper tried to parse all of \279. o LANG-929: OctalUnescaper tried to parse all of \279.
o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero. o LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero.
o LANG-905: EqualsBuilder returned true when comparing arrays, even when the o LANG-905: EqualsBuilder returned true when comparing arrays, even when the