[FB-Tracker] Created: (DNET-712) Problem with accented letters in charset NONE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[FB-Tracker] Created: (DNET-712) Problem with accented letters in charset NONE

JIRA tracker@firebirdsql.org
Problem with accented letters in charset NONE

                 Key: DNET-712
                 URL: http://tracker.firebirdsql.org/browse/DNET-712
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions:
         Environment: Firebird 2.5.6, Visual Studio Community 2015, C# 6.0, .Net Framework 4.5.1, Windows 10 Home
            Reporter: Marcos Gerene Felix Spirito
            Assignee: Jiri Cincura

In this version, the ç, ê, ã and others like these are broken and show "?".

So, I downgrade to and it's works ok again.

The example:

StringBuilder stringConnection = new StringBuilder();
stringConnection.AppendLine("Port=" + portaFirebird + ";Dialect=3;Charset=NONE;Role=;Connection lifetime=15;Pooling=true;");
stringConnection.AppendLine("MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0;");

var connection = new FbConnection(stringConnection.ToString().Trim());
var command = new FbCommand("SELECT * FROM EMPRESA WHERE EMP_ID = 1", connection);
var rd = new command..ExecuteReader();
string test = "";
if (rd.Read())
   test = rd["EMP_RAZAO"].ToString();

The string "test" returns "CONSTRU??O" in (bug) and "CONSTRUÇÃO" in (ok).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
Firebird-net-provider mailing list
[hidden email]