java - Special characted incorrectly stored in POSTGRES DB -


project based on postgres database version 9.3.5, java 7, org.hibernate hibernate-core 3.6.10.final

problem : have 2 separate system running same web application. 1 on of systems persisted correctly on other strings sent postgres database contain unicode characters , text 'nnés' persisted 'nns' or 'nnés-2' . difference noticed between 2 systems 1 displaying unicode , otherutf8 client encoding when doing show client_encoding; in console. 1 running unicode works correctly other not.

my question is possible client encoding got stuck/hardcoded somehow , not being selected based on real client encoding mean strings sent in unicode arent converted utf8 persisted.

what can reasons such behavior.

try request.setcharacterencoding("utf-8");


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -