Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Moe1
Contributor II
Contributor II

Reading and inserting arabic

Hi,

 

Im reading from AS400 one arabic field and inserting it into mysql DB, but it seems Im only getting gibberish with qestion marks?

 

Note: I tried to add into the (additional JDBC parameters) this string (useUnicode=true&characterEncoding=utf8) with no luck....

 

 

Hope someone could help. 

Labels (3)
5 Replies
jilanisyed
Creator
Creator

hi

Your Mysql db also should accept UTF-8 characters. alter your table which field you need to load arabic data.

for your reference please see below query.

 

ALTER TABLE `database`.`table` MODIFY COLUMN col VARCHAR(255)
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;

Moe1
Contributor II
Contributor II
Author

Already done, with no luck
Moe1
Contributor II
Contributor II
Author

When using encoding cp1256 the display is ??? with some weird characters, while when using encoding utf8 the display is gibberish (only wired characters) .. Note that the AS400 file Im reading from has CCSID = 37
Anonymous
Not applicable

Hello,

Have you also tried to add  the "Dfile.encoding=utf-8" to the JVM parameters to see if it works?

0683p000009Lr2B.png

 

Best regards

Sabrina

Moe1
Contributor II
Contributor II
Author

Actually when I changed the CCSID to 420 on AS400 the encoding to cp1256 worked. It is weird that it does not work with the CCSID is 37