Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-658

Some Entitys like Ö are not matched properly against its ISO8859-1 representation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: lang.text.translate.*
    • Labels:
      None

      Description

      In EntityArrays

      In
      private static final String[][] ISO8859_1_ESCAPE
      some matching is wrong, for example

       
              {"\u00D7", "Ö"}, // Ö - uppercase O, umlaut
              {"\u00D8", "×"}, // multiplication sign
      

      but this must be

       
             {"\u00D6", "Ö"}, // Ö - uppercase O, umlaut
              {"\u00D7", "×"}, // multiplication sign
      

      according to http://www.fileformat.info/info/unicode/block/latin_supplement/list.htm

      First look:

      u00CA is missing in the array and all following entries are matched wrong by an offset of 1.

      Found on http://stackoverflow.com/questions/4172784/bug-in-apache-commons-stringescapeutil/4172915#4172915

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mkonietzka Michael Konietzka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: