You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by סמדג'ה גיא <gu...@dbank.co.il> on 2020/01/15 06:24:30 UTC
code page conversion
Hi all
I have a code page conversion issue
I have a flow that reads records from mongoDB and inserts the result into oracle
The mongo encoding is utf-8 , and the oracle is iso8859-8
Some special characters are not shown correctly in oracle – shows ???
I tried using the convertcharacterset function before inserting into oracle, but with no luck (same ???)
And ideas?
Thanks in advanced
Guy Smadga
ETL infrastructure team leader
Israel discount bank
הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
Re: code page conversion
Posted by Mike Thomsen <mi...@gmail.com>.
Looking on Google, I found a number of people having problems with Java
converting back and forth between UTF-8 and that Hebrew ISO code page. For
example:
https://bugs.openjdk.java.net/browse/JDK-8195686
Depending on what JRE you're using, you might need to look very carefully
at how you're declaring the code page in NiFi to make sure that the JRE
itself is not having issues with mapping your input to a known character
set. I saw a PR on JavaMail also that was rejected because it manually
mapped some Hebrew code pages issues that folks felt were better fit into
the JRE.
On Wed, Jan 15, 2020 at 7:32 AM סמדג'ה גיא <gu...@dbank.co.il>
wrote:
> Thanks for answering
>
> The data looks readable all the way, until it enters the oracle DB
>
> Other tools like IBM DataStage handles this kind of data correctly, so I
> guess the problem relays on the NIFI side
>
> As I wrote , oracle is configure with ISO8859-8 code page ,
>
> so I need to do some kind of code page translation before oracle – I tried
> it with ConvertCharacterSet
> <https://prodlnxnifi01.idb.local:9091/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.0.3.2.0.0-520/org.apache.nifi.processors.standard.ConvertCharacterSet/index.html> with
> no luck yet
>
>
>
>
>
>
>
>
>
>
>
> *From:* Mike Thomsen <mi...@gmail.com>
> *Sent:* Wednesday, January 15, 2020 2:05 PM
> *To:* users@nifi.apache.org
> *Subject:* Re: code page conversion
>
>
>
> I'd dump a few of those records to disk with PutFile or view them with the
> content viewer in the NiFi flow. If you see problems within NiFi, you can
> add a new parameter for this in conf/bootstrap.conf:
>
>
>
> -Dfile.encoding=UTF-8
>
>
>
> If it looks good, you need to look at how Oracle is configured because
> it's probably set up to convert to that iso character set instead of
> keeping it as UTF-8
>
>
>
> On Wed, Jan 15, 2020 at 1:24 AM סמדג'ה גיא <gu...@dbank.co.il>
> wrote:
>
> Hi all
>
> I have a code page conversion issue
>
> I have a flow that reads records from mongoDB and inserts the result into
> oracle
>
> The mongo encoding is utf-8 , and the oracle is iso8859-8
>
> Some special characters are not shown correctly in oracle – shows ???
>
> I tried using the convertcharacterset function before inserting into
> oracle, but with no luck (same ???)
>
> And ideas?
>
>
>
>
>
> Thanks in advanced
>
>
>
> *Guy Smadga*
>
> *ETL infrastructure team leader*
>
> *Israel discount bank*
>
>
>
>
>
>
>
> הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק
> דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו
> ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר
> האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק
> דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
>
> אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך
> מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע
> או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
>
> This email was scanned by Votiro
>
> הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק
> דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו
> ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר
> האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק
> דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
> אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך
> מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע
> או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
>
RE: code page conversion
Posted by סמדג'ה גיא <gu...@dbank.co.il>.
Thanks for answering
The data looks readable all the way, until it enters the oracle DB
Other tools like IBM DataStage handles this kind of data correctly, so I guess the problem relays on the NIFI side
As I wrote , oracle is configure with ISO8859-8 code page ,
so I need to do some kind of code page translation before oracle – I tried it with ConvertCharacterSet <https://prodlnxnifi01.idb.local:9091/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.0.3.2.0.0-520/org.apache.nifi.processors.standard.ConvertCharacterSet/index.html> with no luck yet
From: Mike Thomsen <mi...@gmail.com>
Sent: Wednesday, January 15, 2020 2:05 PM
To: users@nifi.apache.org
Subject: Re: code page conversion
I'd dump a few of those records to disk with PutFile or view them with the content viewer in the NiFi flow. If you see problems within NiFi, you can add a new parameter for this in conf/bootstrap.conf:
-Dfile.encoding=UTF-8
If it looks good, you need to look at how Oracle is configured because it's probably set up to convert to that iso character set instead of keeping it as UTF-8
On Wed, Jan 15, 2020 at 1:24 AM סמדג'ה גיא <gu...@dbank.co.il>> wrote:
Hi all
I have a code page conversion issue
I have a flow that reads records from mongoDB and inserts the result into oracle
The mongo encoding is utf-8 , and the oracle is iso8859-8
Some special characters are not shown correctly in oracle – shows ???
I tried using the convertcharacterset function before inserting into oracle, but with no luck (same ???)
And ideas?
Thanks in advanced
Guy Smadga
ETL infrastructure team leader
Israel discount bank
הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
This email was scanned by Votiro
הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
Re: code page conversion
Posted by Mike Thomsen <mi...@gmail.com>.
I'd dump a few of those records to disk with PutFile or view them with the
content viewer in the NiFi flow. If you see problems within NiFi, you can
add a new parameter for this in conf/bootstrap.conf:
-Dfile.encoding=UTF-8
If it looks good, you need to look at how Oracle is configured because it's
probably set up to convert to that iso character set instead of keeping it
as UTF-8
On Wed, Jan 15, 2020 at 1:24 AM סמדג'ה גיא <gu...@dbank.co.il>
wrote:
> Hi all
>
> I have a code page conversion issue
>
> I have a flow that reads records from mongoDB and inserts the result into
> oracle
>
> The mongo encoding is utf-8 , and the oracle is iso8859-8
>
> Some special characters are not shown correctly in oracle – shows ???
>
> I tried using the convertcharacterset function before inserting into
> oracle, but with no luck (same ???)
>
> And ideas?
>
>
>
>
>
> Thanks in advanced
>
>
>
> *Guy Smadga*
>
> *ETL infrastructure team leader*
>
> *Israel discount bank*
>
>
>
>
>
> הודעה זו וכל מסמך הנלווה לה (להלן: "המידע"), הינו שירות דוא"ל מבנק
> דיסקונט. המידע מיועד אך ורק לנמען הרשום בה ולא לשום אדם או גוף זולתו
> ועשויים להכיל מידע סודי וחסוי. יש לעדכן מיידית אודות כל שינוי בכתובת הדואר
> האלקטרוני ו/או במספר טלפון הנייד, באתר הבנק, באפליקציה, בסניפך או בטלבנק
> דיסקונט 6111*. ניתן לבטל את השירות בכל עת, מכל סיבה שהיא.
> אם אינך הנמען הרשום בהודעה, אנא צור קשר עם טלבנק דיסקונט 6111*, כמו כן הנך
> מתבקש להימנע מלעשות כל שימוש, העתקה, פרסום, הפצה, גילוי או העברה של המידע
> או כל חלק ממנו, ולהשמיד את המידע וכל ההעתקים שלו.
>