By the way special characters, through JDBC

Hello

Reading the Oracle documentation indicates that characterset conversion is handled at the database level and that the JDBC layer passes data through JAVA to the UTF-16 format, at least that's my reading of it.

I have a JAVA application that when I point to a database with a we8mswin1252 character set and I uses jnettrace to capture the jdbc, I see the insert statement in passing the hexadecimal value to 91 to the smart quote character.

When an application is repointée to a database with a characterset we8iso8859p1 then the trace jdbc shows the insert statement by passing the hexadecimal value BF for smart quote.

The trace should not display the same value being passed in twice if the conversion is done at the database layer?

Client server: 2015-10-13 12:42:34.361

203 = packet size

00 00 00 06 00 00 00 CB...

00 00 11 69 00 01 01 01... I have...

01 02 03 5TH 00 02 80 29... ^...)

00 01 01 3 01 01 00 0D... <...

00 00 00 04 7F FF FF FF...

01 01 02 00 00 00 00 00...

00 00 00 00 01 00 00 00...

00 00 49 53 45 52 54 4F... INSERT

20 49 4F 4F 54 20 47 4. IN. LG

4TH 45 53 5F 52 4F 4F 4F NES_RONN

49 45 28 20 55 4 49 51 IE (.) UNIQ

55 45 49 44 2 46 49 45 UEID, FIE

(4 44 31 20 29 20 56 41 LD1.). GOING

4 55 45 53 20 28 3-31 SYPHILIS. ( : 1

2 20 32 20 29 01, 01: 3A2.)...

01 01 00 00 00 00 00 00...

00 00 00 00 00 02 00 03...

00 01 16 00 00 00 00 01...

01 00 01 03 00 00 01 B2...

1F 00 01 10 00 00 01 B2...

01 00 07 07 C6 0B 0B 01...

08 1F 0D 41 20 73 69 3D. =... A. If

6th 67 6 65 20 91 20 61 ngle... a

6th 64 20 61 20 64 6F 75 nd.a.dou

62 6 65 20 93 20 71 75 wheat... what

6F 74 65 ote

Client server: 2015-10-13 11:40:18.793

Size of the package = 200

00 00 00 06 00 00 00 C8...

00 00 11 69 00 01 01 01... I have...

01-08-03 5TH 00 02 80 29... ^...)

00 01 01 3 01 01 00 0D... <...

00 00 00 04 7F FF FF FF...

01 01 02 00 00 00 00 00...

00 00 00 00 01 00 00 00...

00 00 49 53 45 52 54 4F... INSERT

20 49 4F 4F 54 20 47 4. IN. LG

4TH 45 53 5F 52 4F 4F 4F NES_RONN

49 45 28 20 55 4 49 51 IE (.) UNIQ

55 45 49 44 2 46 49 45 UEID, FIE

(4 44 31 20 29 20 56 41 LD1.). GOING

4 55 45 53 20 28 3-31 SYPHILIS. ( : 1

2 20 32 20 29 01, 01: 3A2.)...

01 01 00 00 00 00 00 00...

00 00 00 00 00 02 00 03...

00 01 16 00 00 00 00 01...

1F 01 00 01 03 00 00 01...

1 00 01 10 00 00 01 1F...

01 00 07 07 C6 0B 0B 01...

01 01 02 1 41 20 73 69... A. If

6th 67 6 65 20 BF 20 61 ngle... a

73 20 64 6F 75 62 6 C 65 s.double

20 BF 20 71 75 6F 74 65. .quote

Thank you

Ronnie

Reading the Oracle documentation indicates that characterset conversion is handled at the database level and that the JDBC layer passes data through JAVA to the UTF-16 format, at least that's my reading of it.

No - it's NOT correct. What "Oracle documentation" have you read that in? Post a link.

Java internally stores characters in the UTF-16 format data.

The JDBC driver will convert to the character set the character set of the client and the database character set.

See chapter globalization support for JDBC Developer Guide

http://docs.Oracle.com/CD/E11882_01/Java.112/e16548/global.htm#JJDBC28643

Support of globalisation 19

The Java Database Connectivity (JDBC) Oracle drivers support globalization, formerly known as Support NLS (National Language). Globalization support lets you retrieve data or insert data into a database in any character set that Oracle supports. If the clients and the server are using different character sets, then the driver will provide support to perform conversions between the database character set and the character set of the client.

This chapter contains the following sections:

See the last sentence of the first paragraph?

Tags: Java

Similar Questions

  • How to tell the difference between access through JDBC and direct sql queries through server dimensions

    Hi all

    We use an Oracle 11 g server, the request is sent to the oracle database through different ways, one directly from the server of dimensions and is another method below

    • TDC customer creates a session in the api
    • session of the API sends a request to the application server
    • application server queries the database

    Of course, I see all the sql queries in the oracle database, but what I am interested in is now what queries go directly through the server dimensions and through the API. Please tell me how I can find this information.

    MACHINE, TERMINAL, PROGRAM, MODULE and CLIENT_INFO column in V$ SESSION could give you a clue.

    HTH,

    Lordane Iotzov

  • By the way of characters to a variable substitution

    Greetings,

    I have problems passing numbers like characters in a variable substibution.

    For example, I want to move to 2 digits for the month and two digits for the year. And even if I set the variable as char4, it always tuncates 0.

    This is whatI'm doing...

    define LV_MMYY char (4)

    ACCEPT LV_MMYY char (4) invites "enter a 4 character month/year in the format MMYY: '"

    SELECT TO_CHAR(&LV_MMYY) TEST double;

    When I pass "0110" for January 2010, here are the resutls...

    old: dual SELECT & LV_MMYY TEST OF
    New: 0110 SELECT TEST double

    TEST
    ----------
    110

    1 selected line.

    Why he keep deleting the 0?

    Put quotes around your variable substitution. And you need not TO_CHAR:

    SQL> select '&1' from dual;
    Enter value for 1: 0110
    old   1: select '&1' from dual
    new   1: select '0110' from dual
    
    '011
    ----
    0110
    
  • You can change the way that you scroll up and down pages.have just installed the new update from apple and the way in which you have to scroll through the pages in firefox has c

    After you have installed the latest version of the software update apple has changed the way you scroll through the pages. I would like to consider to have a box at the top and bottom of the screen that you use for scrolling. Any help would be greatly appreciated.

    On Mac, scroll bars may be hidden and are showing them when you scroll down the page, so you can see the current scroll position.

    The idea is that a Tablet is used that does not need to be visible and therefore more screen real estate for the navigation area, scroll bars.

    You can make scroll bars always appear:

    System Preferences > General > Show Scroll Bar > Choose "Always"
    
  • Jabber for Windows 11.5 and connection of the unit - German special characters in password

    We Jabber for Windows 11.5.2 running and using the connection of the Unit 10.5.2. Whenever a user uses a password with the German special characters (a, o, u), Jabber is not able to connect to the connection of the unit. Everything else works fine. We also have this problem in 10.6 versions. In the voicemail tab it is said that the name of user or password is wrong. We can reproduce the problem...

    BTW. also it does not work in the current jabber for iOS version!

    Anyone know if it's a bug or experiencingthe same problem?

    I simply make the point that use German special characters causes a lot of problems, in many places, whole CUCM and IM & P and you avoid them.

  • by the way the characters in the URL

    Hi all

    Just wondering if there is a way to get passed by the way specific characters in the URL...

    On my music website I found that if a song a # or & or (or "in the title, the link does not work...

    for example if you go to the funeral of exit named on the link below and click on any song of the symbol # in the title, it just won't...



    Here's the linky link

    Thank you very much

    You must use URLEncodedFormat() to properly encode the variables in the link

    > Song_sng.id_sng = #id_sng.id_sng # WHERE

    The error seems to occur on this line. If #id_sng.id_sng # is a string, you must use single quotes around the value or use cfqueryparam

    WHERE song_sng.id_sng = ' #id_sng.id_sng # '.

  • How to query a column to see if it contains special characters?

    What is the best way to know if a column has all special characters in it?

    Is there a special feature of Oracle to detect special characters?

    Also, these are the only special characters in Oracle?
    ,
    &
    =
    ?
    { }
    \
    ( )
    [ ]
    -
    ;
    ~
    |
    $
    !
    >
    *
    %
    _

    alnum are all alphanumeric characters so if you do not use almun it would work for you?

    with t as (
    select 'fdsa%fdsa' txt from dual union all
    select 'fdsa{qzjhgf' from dual union all
    select 'frsed' from dual union all
    select '8765885)#' from dual
    )
    select t.* from t
    where regexp_like(txt,'[^[:alnum:]]')
    
  • Problem of L50 - B satellite with special characters in country

    I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7.

    In Polish, key key programmer combination right alt and the keys 'z', 'x', and 'c' should give the Polish special characters.

    Unfortunately this does not work for these three keys, however works other keys in Polish characters as 'l', 'n', 'a', a ' or 'e '. I suspect that this may be linked to the special key Fn,.

    However turning or disable in the BIOS did not help. Maybe there should be a driver of special keyboard for windows 7, but I have not found it :(

    {quote} I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7. {quote}

    The laptop has been presintalled and configured with the Win 8.1 System.
    Have you noticed this problem with installation of Win 7 8.1 or after the victory?

    If you have an external USB keyboard, I recommend you to check if the same problem would appear using the USB keyboard. In case the external USB keyboard would work correctly, the problem could be related to a defective internal keyboard

  • Special characters in sql

    Hello

    I had a question about the escaping special characters in Oracle. Let's say I have a table column that contains data like '% _Tester % '. I ideally if we do a select on this table, it would be something like

    Select * from table where column like '% \_TEST%' escape ' \'

    However, when I run this query on sql developer

    Select * from table where column like 'TEST %', it returns the same result. (without exhaust the character special _.)

    I was just wondering, if this is because default sqldeveloper escapes special characters? or do we still have to write the leak as a good practice?

    Thank you!

    Ryan

    Lines that are LIKE 'TEST %' will include all lines that are LIKE '\_TEST% %' ESCAPE ' \'. If all lines which that interest you conform to the mask, they will also appear when you perform the first. You can have records that correspond to the first but not the second, although:

    SQL > create table testdata until

    SELECT 'ABCTESTXYZ' val double UNION ALL

    SELECT "AB_TESTXYZ" FROM double

    Table created.

    SQL > SELECT * FROM testdata WHERE val LIKE '\_TEST% %' ESCAPE ' \'

    VAL

    ----------

    AB_TESTXYZ

    1 selected line.

    SQL > SELECT * FROM testdata WHERE val LIKE '% TEST % '.

    VAL

    ----------

    ABCTESTXYZ

    AB_TESTXYZ

    2 selected lines.

  • Need a list of special characters in XML

    Hi all

    Could you please provide a list of special characters in XML format.

    Concerning
    B.Kishan

    I assume you are asking for this
    [url http://www.w3.org/TR/REC-xml/#sec-predefined-ent] Predefined entities
    defines the five special characters
    < &="" '="" "="">

    Otherwise, you can try google with
    XML special characters
    or
    predefined XML entities
    to see what's coming to us.

  • How to enter special characters/symbols (i.e. the degree character) in the text boxes?

    Not a problem/w Firefox - I was wondering if there is a way to enter the special characters and characters (not on the keyboard) in the text boxes? I remember that there is a keyboard sequence that activates a context menu allowing the single character/symbol entry. Thanks in advance, Allan.

    See:

  • Special characters in the password

    Hi, I have chosen a password with caracter special: now @!
    and then, it is impossible to type the character @, so I can't start my machine!
    What can I do?

    Hello
    Sorry, but now you have a big problem. For the BIOS password or supervisor password, it should be used only the following characters: a... z, a.. Z and 0... 9 paper

    Choice of some special characters will cause that the laptop not boot not. In this case, contact your authorized Toshiba Service Provider because the password must be deleted and there is no way you can do it yourself.

  • Special characters and accents on the smart keyboard?

    How to type special characters and accents on the smart Pro iPad keyboard? For example, I like to write "Róisín Murphy" with accents in the name as shown here. But I can't find a way to do it. Are there not as a software keyboard that I can draw on screen for those?

    Thank you.

    If you have your English keyboard, then you can use the standard Mac shortcuts.  For acute, you more e option, then the basic letter.  e is more e, then e option.

    If you have your keyboard to something else, like Italian, then it might be different.  That your keyboard is set to?

  • Create these special characters in the name of the file as test.? docx or test? PDF in the OS window

    Hello

    Is there a possible way to create these special characters in the name of the file as test.? docx or test? PDF to test the goal?

    I do programming to detect this type of special characters in the file name. This modified script will this type of invalid char file appropriate name, so I need to have the sample to check if my script works.

    I have OSX or Linux. Is there no workaround solution I created in the window itself?

    or can someone create for me so I can go and download instead?

    Thank you and best regards,
    back4more

    Hi Backformore,

    Thanks for posting your question in the Microsoft answers Forum. For any question concerning the development of programs, visit the MSDN hereforums.

  • Chips and other special characters in the App World descriptions

    How is one makes chips and other special characters in the description of the app in the supplier portal?  I see various descriptions app with chips so I know it's possible.  I tried Googling the answer, but to no avail.  Can someone point me to the documentation for it?

    Thank you

    Lester

    I think it's just the Unicode text, so if you include these characters when you submit the form, they will display.

    Your question is perhaps more on how to insert these characters into the HTML form. To do this, because I need it rarely, I didn't copy and paste of a website where I can find the required text. For example, Google for 'unicode ball' and you can find one of them on one of the first findings of the research, such as the Wikipedia article.

    Some people probably have their systems set up to type Unicode directly from their keyboard, but I never got to determine the modern way to do this (and the last time I checked, years, Unicode in operating systems support was still largely missing).

Maybe you are looking for