• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.0.2
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      By default, the MSSQL hibernate dialect creates char, varchar and text columns when defining a schema. These fields do not support Unicode characters. Instead, we need to user nchar, nvarchar and ntext columns.

      What we want to do is create a hibernate dialect that can be used that creates the correct unicode column types.

      ----- Some background info:

      In Microsoft SQL Server, these data types support Unicode data:

      nchar

      nvarchar

      ntext

      Note The n prefix for these data types comes from the SQL-92 standard for
      National (Unicode) data types.

      Use of nchar, nvarchar, and ntext is the same as char, varchar, and text,
      respectively, except that:

      Unicode supports a wider range of characters.

      More space is needed to store Unicode characters.

      The maximum size of nchar and nvarchar columns is 4,000 characters, not 8,000
      characters like char and varchar.

      Unicode constants are specified with a leading N: N'A Unicode string'.

      All Unicode data uses the same Unicode code page. Collations do not control the
      code page used for Unicode columns, only attributes such as comparison rules and
      case sensitivity.
      ------------------------------

            [CONFSERVER-4786] Need to support UNICODE characters in MSSQL server.

            Partha added a comment -

            This has been duplicated by a more recent issue, so I will close this.

            Partha added a comment - This has been duplicated by a more recent issue, so I will close this.

            We have added a new Hibernate dialect for Microsoft SQL Server in order to create the database tables using Unicode datatypes. You can setup Confluence with the Unicode MSSQL dialect as follows:

            1. Open the mssql.properties file within your Confluence installation folder
            2. Comment the line: dialect=net.sf.hibernate.dialect.SQLServerDialect
            3. Uncomment the line: #dialect=net.sf.hibernate.dialect.SQLServerIntlDialect
            4. Start the Confluence setup

            A description off this issue can also be found on the MSSQL Tips page in the Confluence documentation under:

            http://confluence.atlassian.com/x/ddMB

            Jeremy Higgs added a comment - We have added a new Hibernate dialect for Microsoft SQL Server in order to create the database tables using Unicode datatypes. You can setup Confluence with the Unicode MSSQL dialect as follows: 1. Open the mssql.properties file within your Confluence installation folder 2. Comment the line: dialect=net.sf.hibernate.dialect.SQLServerDialect 3. Uncomment the line: #dialect=net.sf.hibernate.dialect.SQLServerIntlDialect 4. Start the Confluence setup A description off this issue can also be found on the MSSQL Tips page in the Confluence documentation under: http://confluence.atlassian.com/x/ddMB

              Unassigned Unassigned
              8873c89cc788 Daniel Ostermeier
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: