Accessing postgresql database

J

Jeova Almeida

Hello,

I have a postgresql database using SQL_ASCII encoding. How can I show the
accentuated characters on a .aspx page?

In web.config file, I tried configuring
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
culture="pt-BR"/>

No avail. I also tried with utf-8.

I used meta tag

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Not worked too.

I'm using NPGSQL library to access the database, which supports only UNICODE
encoding.

Please help.
 
J

Jeova Almeida

Jeova Almeida said:
Hello,

I have a postgresql database using SQL_ASCII encoding. How can I show the
accentuated characters on a .aspx page?

In web.config file, I tried configuring
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
culture="pt-BR"/>

No avail. I also tried with utf-8.

I used meta tag

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Not worked too.

I'm using NPGSQL library to access the database, which supports only
UNICODE encoding.

Please help.

I found a solution: using the built in database function
convert(fiedlName using windows_1250_to_utf8)
 
J

Jeova Almeida

Jeova Almeida said:
Hello,

I have a postgresql database using SQL_ASCII encoding. How can I show the
accentuated characters on a .aspx page?

In web.config file, I tried configuring
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
culture="pt-BR"/>

No avail. I also tried with utf-8.

I used meta tag

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Not worked too.

I'm using NPGSQL library to access the database, which supports only
UNICODE encoding.

Please help.

I found a solution: using the built in database function
convert(fiedlName using windows_1250_to_utf8)
 

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

Top