|
Mohammad,
You really need a hex editor when fighting encodings. There are two basic
facts to consider. What is the actual byte in that stream at that point in
the file, and what is the encoding the text editor is either reading from
the BOM or assuming.
It looks like CPYTOIMPF does not add a BOM to the begining of the file, but
its not terrible hard to do, but a little hacky.
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011066
But get a hex editor plugin for notepad++. Thats the best way to debug
unicode issues.
BTW, if you want a text editor that can read EBCDIC, I recommend the one
built into the free and open source orthodox file manager farmanager. Its
developed by russians, but the english internationalization is great.
Justin Dearing
On Wed, Nov 2, 2016 at 11:39 AM Mohammad Tanveer <surgum@xxxxxxxxx> wrote:
IBM I version 5770SS1 V7R2M0wrote:
tried multiple combinations
CCSID of the DB2 Column (tried with 37, 278, 1143)
CCSID of the IFS File (278, 1251, 1143)
CCSID of the job is 65535
On Wed, Nov 2, 2016 at 8:23 AM, Mohammad Tanveer <surgum@xxxxxxxxx>
BIN.
I tried FTP, SFTP and simple drag and drop of IFS file to PC. sameothers
behavior all the time.
On Wed, Nov 2, 2016 at 6:52 AM, Rob Berendt <rob@xxxxxxxxx> wrote:
How are you "moving" the file? Some methods are more friendly than
in preserving such characters. FTP is generally recommended as the
safest. I suspect you're doing that because you mentioned ASC and
midrange-l@xxxxxxxxxxxx>
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: Mohammad Tanveer <surgum@xxxxxxxxx>
To: Midrange Systems Technical Discussion <
dataDate: 11/02/2016 09:48 AM
Subject: Re: CPYTOIMPF and accented characters
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I know that on IFS file has correct character code as I can see the
accentedon
AS/400 correctly. Problem is only if I move the CSV file to PC
allcharacter translation is getting lost somehow...
On Wed, Nov 2, 2016 at 6:45 AM, Mohammad Tanveer <surgum@xxxxxxxxx>
wrote:
I tried both.. in Notepad++ I see special codes in front of almost
opencharactersSWE/DEN characters when I switch the encoding to UTF-8 but not foraccented
characters that's why I am thinking for some reason accented
are
not converted properly or translation is not happening.wrote:
On Wed, Nov 2, 2016 at 6:34 AM, Luis Rodriguez <luisro58@xxxxxxxxx>
Are you using the "standard" Windows Notepad? What happens if yu
ahowthat
file using an app like Notepad++ or Word? It could be a problem in
wrote:Notepad is opening the file...
HTH,
Luis
On Wed, Nov 2, 2016 at 9:29 AM Mohammad Tanveer <surgum@xxxxxxxxx>
First I tried CCSID 277 it didn't work then I tried 278 and then
luisro58@xxxxxxxxxfromnumber
of others.. nothing works... as soon as I download the CSV to PC
IFS
I don't see accented characters appearing in notepad.
Regards
.
On Wed, Nov 2, 2016 at 6:05 AM, Luis Rodriguez <
2..for
wrote:
Are you sure about the CCSID? A quick Google search gave me 277
surgum@xxxxxxxxx>Danish...
Regards,
Luis
On Wed, Nov 2, 2016 at 9:00 AM Mohammad Tanveer <
with*PCASCII.wrote:
After creating a CSV file using CPYTOIMPF and CCSID 278 or
It looks like accented characters (Danish characters like A
filecircle
on
top *Å*) do show up in 5250 emulation when I use EDTF on IFS
settingeditorbut
they
don't show up when I copy the file to PC and open it in text
binarywithcharacters
UTF-8 encoding. It shows as $ sign. Most of other Danish
show
up correctly in text file. I tried copying the file to PC in
CPYTOIMPFformat
and ASCII but no luck.
Is it a bug or I cannot convert Accented characters using
for
PC? Other CCSID 278 characters are converting fine.
Following output is in EDTF after changing the emulation
Columnto
host
code 037. Line 5 shows $ instead of *Å*
Browse :
/swe/SL600O.csv
Record : 18 of 1905 by 18
:
1
225 by 1316....+....7....+....8....+....9....+....0....+....1....+....
Control
:
....+....1....+....2....+....3....+....4....+....5....+....
11431908932044 ,460000643478,MALENE HESSELDAL
,GUNDERSEN ,JERICHAUSGADE 3 ST. TV
0311732102 ,460000601288,KARINA
,AKSTRUP ,LILLEVANG 145
2805742472 ,460000741415,MAJ
,ANDKJÆR ,SOLSIKKEVÆNGET 22
9203064069 <(920)%20306-4069> ,460000690554,EMILY
,MIKKELSEN ,ROTTARPVEJ 32
300368-0028 ,460000015491,GITTE
,PEDERSEN *,M$GEVEJ 44 *
110871-1228 ,460000503509,LOTTE
,ERRI ,KÆRBØLVEJ 52 A
0304712252 ,460000695645,METTE
,AUNBIRK ,HOLMELINSVEJ 3
1008762682 ,460000713579,NICOLE
,FOGET ,SOLVANGSVEJ 5B
0508691254 ,460000705806,FREYA CHALOTTE
,HOLM ,ØSTERGADE 9
0411742024 ,460000707761,PIA VIBEKE
,HAUSTED ,KAMPESMOSE 23
2203781132 <(220)%20378-1132> ,460000673722,MARIE
,KJÆR ,TATERBAKKEVEJ 3
240259-2020 ,460000012598,LONE
,MARQUARDSEN ,FORSYTHIAVEJ 38
1204762526 ,460000699274,MALENE DALGAARD
,KROGH ,CENTRALG$RDSVEJ 121
2103572528 <(210)%20357-2528> ,460000518039,DORRIT
,KRISTENSEN ,SKJOLDAGERVEJ 92 2 TH
0507380840 ,460000539850,KARIN
,SIMONSEN ,STRANDGADE 28 N HOU
1208520144 ,460000639066,ANNIE
,BEJART ,PRÆSTEGAARDSVEJ 5
2403741356 <(240)%20374-1356> ,460000729054,KAREN
,EBBESEN ,BELLAHOJVEJ 14
1903802622 ,460000675467,VINNI MARIE ,S.
MADSEN ,ØSTKÆRVEJ 27
2604712478 <(260)%20471-2478> ,460000701355,METTE
,OLESEN ,BYAGEREN 25
This is after switching the emulation to Host Code Page to
convertinyou
can
see
line 5 show correctly in EDT.. and I can copy paste this data
understandnotepad
as
you can see PC shows it correctly. Which means PC can
this
character in notepad... so why CPYTOIMPF is not able to
(MIDRANGE-L)Columnit
to
plain
PC text using CCSID?
Browse :
/swe/SL600O.csv
Record : 18 of 1905 by 18
F16=Repeat:
12....+....3.
225 by 1316....+....7....+....8....+....9....+....0....+....1....+....
Control
:
....+....1....+....2....+....3....+....4....+....5....+....
1908932044 ,460000643478,MALENE HESSELDAL
,GUNDERSEN ,JERICHAUSGADE 3 ST.
TV
0311732102 ,460000601288,KARINA
,AKSTRUP ,LILLEVANG
145
2805742472 ,460000741415,MAJ
,ANDKJÆR ,SOLSIKKEVÆNGET
22
9203064069 <(920)%20306-4069> ,460000690554,EMILY
,MIKKELSEN ,ROTTARPVEJ
32
300368-0028 ,460000015491,GITTE
,PEDERSEN *,MÅGEVEJ 44 *
110871-1228 ,460000503509,LOTTE
,ERRI ,KÆRBØLVEJ 52
A
0304712252 ,460000695645,METTE
,AUNBIRK ,HOLMELINSVEJ
3
1008762682 ,460000713579,NICOLE
,FOGET ,SOLVANGSVEJ
5B
0508691254 ,460000705806,FREYA CHALOTTE
,HOLM ,ØSTERGADE
9
0411742024 ,460000707761,PIA VIBEKE
,HAUSTED ,KAMPESMOSE
23
2203781132 <(220)%20378-1132> ,460000673722,MARIE
,KJÆR ,TATERBAKKEVEJ
3
240259-2020 ,460000012598,LONE
,MARQUARDSEN ,FORSYTHIAVEJ
38
1204762526 ,460000699274,MALENE DALGAARD
,KROGH ,CENTRALGÅRDSVEJ
121
2103572528 <(210)%20357-2528> ,460000518039,DORRIT
,KRISTENSEN ,SKJOLDAGERVEJ 92 2
TH
0507380840 ,460000539850,KARIN
,SIMONSEN ,STRANDGADE 28 N
HOU
1208520144 ,460000639066,ANNIE
,BEJART ,PRÆSTEGAARDSVEJ
5
2403741356 <(240)%20374-1356> ,460000729054,KAREN
,EBBESEN ,BELLAHOJVEJ
14
1903802622 ,460000675467,VINNI MARIE ,S.
MADSEN ,ØSTKÆRVEJ
27
2604712478 <(260)%20471-2478> ,460000701355,METTE
,OLESEN ,BYAGEREN
25
F3=Exit F10=Display Hex F12=Cancel F15=Services
find
F19=Left F20=Right
Any idea/help ?
--
This is the Midrange Systems Technical Discussion
relatedrelatedmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
mailingquestions.--
Luis Rodriguez
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
listmailingmailingquestions.--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Luis Rodriguez
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
----list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.