MMBase

Url escapers do not properly escape Unicode

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.7.4
  • Component/s: Core
  • Description:
    Hide
    original bugid: #6731
    The url escapers (under org.mmbase.util) do not work properly - the string to encode is encoded to the wrong format.
    According to the specs it should encode to UTF-8, but it uses the system's encoding, resulting in wrong urls.
    I changed the code in the classes to use UTF-8 encoding.
    In 1.8, the classes were moves to the SCAN application. The transformer classes no longer use the escapers, but use java.net.URLEncoder.
    Show
    original bugid: #6731 The url escapers (under org.mmbase.util) do not work properly - the string to encode is encoded to the wrong format. According to the specs it should encode to UTF-8, but it uses the system's encoding, resulting in wrong urls. I changed the code in the classes to use UTF-8 encoding. In 1.8, the classes were moves to the SCAN application. The transformer classes no longer use the escapers, but use java.net.URLEncoder.

Activity

Hide
Pierre van Rooden added a comment - 2005-07-28 11:25
Url escapers do not properly escape Unicode
The url escapers (under org.mmbase.util) do not work properly - the string to encode is encoded to the wrong format.
According to the specs it should encode to UTF-8, but it uses the system's encoding, resulting in wrong urls.
Show
Pierre van Rooden added a comment - 2005-07-28 11:25 Url escapers do not properly escape Unicode The url escapers (under org.mmbase.util) do not work properly - the string to encode is encoded to the wrong format. According to the specs it should encode to UTF-8, but it uses the system's encoding, resulting in wrong urls.
Pierre van Rooden made changes - 2006-11-24 13:52
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Assignee Pierre van Rooden [ gomez ] Default Project Leader [ mmbaseleader ]

People

Dates

  • Created:
    2005-07-28 11:28
    Updated:
    2006-11-24 13:52
    Resolved:
    2006-11-24 13:52