cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JDBC Channel Characterset

Former Member
0 Likes
1,279

Hello expert,

I have a question about JDBC channel.

the scenario is from ECC to Oracle DB. we need insert Chinese character into table. And the characterset on ECC system is Unicode, character set on Oracle DB is WE8ISO8859P1.

I find there is no field to set characterset in JDBC receive channel.

Is there anyway to do the characterset transfer? Any standard module could be used here?

any suggestion would be appreciated.

thanks a lot.

Regards,

Kevin Song

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi all,

The question is closed. We solved this issue via creating a middle ware database which using the same character set with PI. and then transfer the encoding when reading data to 3rd party db system.

Until now there is not better way to do the encoding convention in PI.

Regards,

Kevin Song

SeKumar
Explorer
0 Likes
Solution : 1- Insert "hasQuot" attribute to your target Data_Type element. 2- Make hasQuot false using the value "No" in the Message_Mapping. 3- Concat the source value with the prefix "N'" and suffix "'" in the Message_Mapping

Answers (3)

Answers (3)

0 Likes

HI Kevin,

Try with below driver URL

use the extra code to end of the string ( ?useUnicode=true&characterEncoding=UTF-8 )

jdbc:mysql://localhost/unicode?useUnicode=true&characterEncoding=UTF-8

Regards,

Venkat.

Former Member
0 Likes

Hi Venkat,

Thanks for your reply. But I don't think that string could be used after Oracle driver.

I will recheck that.

Former Member
0 Likes

Hi Venkat,

Thanks for your reply. But I don't think that string could be used after Oracle driver.

I will recheck that.

Former Member
0 Likes

Hi Kevin,

You should check your JDBC driver.

Check the SAP note 831162 (FAQ: XI 3.0 / PI 7.0 JDBC Adapter) is pointed this question (2question). The codepage is configured in the driver.

Regards.

Former Member
0 Likes

Thank you Vila,

I will check it.

SeKumar
Explorer
0 Likes

Solution :

1- Insert "hasQuot" attribute to your target Data_Type element.

2- Make hasQuot false using the value "No" in the Message_Mapping.

3- Concat the source value with the prefix "N'" and suffix "'" in the Message_Mapping1.png2.png3.png.