Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-191

Connection Name mess up if it contains non-ascii chars

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1
    • Fix Version/s: 1.1.0
    • Component/s: studio-connection
    • Labels:
      None
    • Environment:

      Description

      If I create a Connection and name it using non-ascii chars, it's messed up the next time the App is opened.

      Looking at the Environment details, it seems as if the VM is using MacRoman encoding, and not Latin1 or Unicode as I would expect...
      Maybe that needs to be set somewhere?

      Ex: "Tårnby Gym OD" becomes "TÔøΩrnby Gym OD"

        Activity

        Pierre-Arnaud Marcelot made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Closing this issue.

        Show
        Pierre-Arnaud Marcelot added a comment - Closing this issue.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Oooops...

        Forgot commit number...

        Here it is : 576474

        http://svn.apache.org/viewvc?rev=576474&view=rev

        Show
        Pierre-Arnaud Marcelot added a comment - Oooops... Forgot commit number... Here it is : 576474 http://svn.apache.org/viewvc?rev=576474&view=rev
        Pierre-Arnaud Marcelot made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Should be fixed at commit .

        Tested with the given String ("Tårnby Gym OD") with the Mac OS X 10.4.10 and Java 1.5.0_07.

        Show
        Pierre-Arnaud Marcelot added a comment - Should be fixed at commit . Tested with the given String ("Tårnby Gym OD") with the Mac OS X 10.4.10 and Java 1.5.0_07.
        Pierre-Arnaud Marcelot made changes -
        Field Original Value New Value
        Component/s studio-connection [ 12311913 ]
        Assignee Pierre-Arnaud Marcelot [ pamarcelot ]
        Fix Version/s 1.1.0 [ 12312701 ]
        Affects Version/s 1.0.1 [ 12312702 ]
        Hide
        Emmanuel Lecharny added a comment -

        I would suggest that every String is encoded and decoded using UTF-8 when saved on file (config file).

        Show
        Emmanuel Lecharny added a comment - I would suggest that every String is encoded and decoded using UTF-8 when saved on file (config file).
        Hide
        Jakob Peterhänsel added a comment -

        Seems like the file:
        ~/.ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.connection.core/connection.xml
        is written in UTF-8, but the runtime is assuming everithing is in MacRoman encoding...
        Can't really figure out if the file IS written in UTF, or something else, but the file state it's UTF-8, although opening the file in BBEdit in other encodings, does not make the chars show correctly.
        The chars written to file, when editing/creating a Connection seems wrong. (it's not UTF-8)

        Changing the text via BBEdit (in UTF-8) makes the App show the name as "Tårnby Gym OD".
        Really looks like a UTF vs. MacRoman mess-up.

        Show
        Jakob Peterhänsel added a comment - Seems like the file: ~/.ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.connection.core/connection.xml is written in UTF-8, but the runtime is assuming everithing is in MacRoman encoding... Can't really figure out if the file IS written in UTF, or something else, but the file state it's UTF-8, although opening the file in BBEdit in other encodings, does not make the chars show correctly. The chars written to file, when editing/creating a Connection seems wrong. (it's not UTF-8) Changing the text via BBEdit (in UTF-8) makes the App show the name as "T√•rnby Gym OD". Really looks like a UTF vs. MacRoman mess-up.
        Jakob Peterhänsel created issue -

          People

          • Assignee:
            Pierre-Arnaud Marcelot
            Reporter:
            Jakob Peterhänsel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development