SQL request returns incorrect french characters

H

hagar

I am creating a JSP page that queries a database that contain french
characters. The query works fine and records are returned with the
following request:

AND DESIGNATION_FR = "Zone d'utilisation générale"

However somewhere between the response to the query and passing the
information to the browser the e's with the accents get altered as
such:

"Zone d'utilisation ginirale"

I imagine this is some sort of character set issue. Has any resolved
this sort of thing?
 
T

Tom Forsmo

hagar said:
I am creating a JSP page that queries a database that contain french
characters. The query works fine and records are returned with the
following request:

AND DESIGNATION_FR = "Zone d'utilisation générale"

However somewhere between the response to the query and passing the
information to the browser the e's with the accents get altered as
such:

"Zone d'utilisation ginirale"

I imagine this is some sort of character set issue. Has any resolved
this sort of thing?

I have experienced some problems with character sets in DBs, not the
exact same problem, but still. My suggestion is to check that the
character set is the same in the db config, the table, the connection,
the application and the web page. If they are not the same you might
want to try to apply a conversion, for example at the connection. In
addition you might want to check that the data in the database is of the
correct character set.

tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top