Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

I'm using https://github.com/brianc/node-postgres pg module. Apparently I can't consume a Unicode password to connect to the db. From the same location psql with connection parameters goes OK. With Node.js, it gives ne password authentication failed for user. When I check with console.log() I see exactly what I expect. If I change a password to ASCII both in the db and the connection string, everythin works well. But I need the old Unicode password to be consumed...

I tried both https://github.com/brianc/node-postgres/wiki/Client

new pg.Client({...password: Código

and

conString = "postgres://...Código@"

I know that both ODBC (Driver={PostgreSQL UNICODE};) and JDBC (;Unicode=true) support UTF in connection string. I find nothing on Node.js pg module UTF support.

Please help.

I saw http://www.connectionstrings.com/postgresql/ and read the documentation on https://github.com/brianc/node-postgres. Please help with the question, not with bugs in my DNA.

Thank you!

share|improve this question
    
would github.com/bnoordhuis/node-iconv be helpful?.. – Vao Tsun Nov 26 at 10:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.