jdbc - Informix Dynamic Server Version 11.70 symbol trademark converted to question mark -


  1. ibm informix dynamic server version 11.70 on rhel 2.6

  2. some info

    select distinct dbs_collate  sysmaster:sysdbslocale;  dbs_collate -----------  en_us.819 
  3. my jdbc

    jdbc.ep.ifx.url=jdbc:informix-sqli://server:9999/testdb:informixserver=test_shm;ifx_use_strenc=true; 
  4. the table

    create table test ( id serial, notes nchar(5120) ); 
  5. what trying achieve

    • use web-base app add text informix table thru jdbc
    • text can including symbols (eg copyright, trademark)
  6. what works

    • i can add whatever text,symbols table,
    • but symbol eg trademark saved "?".
  7. my question

    • how make symbol saved , displayed instead of being converted "?"

some characters not represented in en_us.819. can see how looks at: https://en.wikipedia.org/wiki/iso/iec_8859-1 there copyright , reserved characters while cannot see trade mark.

i have made simple jython program inserts such characters informix database. test database uses polish encoding pl_pl.1250.

insert test_nchar (id, notes) values (1, 'copyright: ©') insert test_nchar (id, notes) values (2, 'registered: ®') insert test_nchar (id, notes) values (3, 'trademark: ™') terrible wrong [insert test_nchar (id, notes) values (3, 'trademark: ™')] traceback (most recent call last):   file "jdbc_ifx_encoding.py", line 20, in run_sql     c.execute(sql) sqlexception: java.sql.sqlexception: b\u0142\u0105d konwersji kod\xf3w wskutek zabronionej sekwencji lub b\u0142\u0119dnej warto\u015bci. select ... 1: [copyright: ©] 2: [registered: ®] 

i try translate error message polish english: error while code conversion because of disallowed sequence or wrong value. message if insert trademark character. trademark not available nor polish cp1250 use, nor cp819 use. maybe inserted using other technology odbc?

you can see select shows strange characters before copyright/registered character.

i think solution create new database unicode encoding utf-8.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -