Subject Re: [Firebird-Java] Encoding problem when using Jaybird to access Firebird with Java
Author Mark Rotteveel
The list removes attachments and such. You might want to include the information in the email itself, or publish it through dropbox or something like that. 

It would also be helpful if you specify the exact types of the field involved. And the version of Firebird and Jaybird.

Mark


-------- Original message --------
From: "Valério valerio@... [Firebird-Java]" <Firebird-Java@yahoogroups.com>
Date: 05/09/2017 20:32 (GMT+01:00)
To: Firebird-Java@yahoogroups.com
Cc: onofre@..., helio@..., joao@...
Subject: [Firebird-Java] Encoding problem when using Jaybird to access Firebird with Java

I'm using Jaybird driver to access data from a Firebird Database through Web
Service. The connection is made using JDBC. There is no problem in
connection itself, but in the content gathered from database. After data has
been gathered from database, I parse the objects using Gson, a Google
library to parse Java objects into JSON. Finally, we send the resulting JSON
response to a GET request in Web Service, but response content is wrongly
encoded.

Example: I did a GET Request in following URL: ---> http: // localhost: 8081
/ WSVendasExternas / company / search <--- and my Web Service get data from
Firebird through Jaybird driver, parse objects using Gson library. Then,
response content was sent with wrong character encoding.

I am trying to connect using the following JDBC URL: jdbc: firebirdsql:
192.168.254.27/3051: C: /MY_DATABASE.FDB?charSet = utf-8

Even specifying charset in JDBC URL, I still get the following result:



Descrição: Descrição: Encoding error example



As you can see, some words seems broken. Has anyone already experienced this
or have any solution or suggestions?








Descrição: cid:image001.png@01D06865.0D210DC0

 

Valério Bezerra
Programador Sênior


Telefone:
E-mail:

(87) 3866-7800

<mailto:valerio@...> valerio@...









[Non-text portions of this message have been removed]



------------------------------------
Posted by: =?iso-8859-1?Q?Val=E9rio?= <valerio@...>
------------------------------------


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Firebird-Java/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Firebird-Java/join
    (Yahoo! ID required)

<*> To change settings via email:
    Firebird-Java-digest@yahoogroups.com
    Firebird-Java-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    Firebird-Java-unsubscribe@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/