× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Dirk, try this:

unlink(%trim(FileName));
handle = open(%trim(FileName)
:o_wronly + o_create + o_ccsid + o_trunc + o_textdata +
o_text_creat
:s_irwxu + s_irwxg + s_irwxo
:n_ccsid
:0);

where n_ccsid = 1208

HTH


--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco


2014/1/21 <Dirk.Marien@xxxxxxxxxxxxxxxxx>

Hi all,
I have ? probably another ? code-page issue. I create an XML-file on the
IFS with following syntax:
fd = open(IFSFolder:
O_CREAT+O_WRONLY+O_CODEPAGE:
S_IWUSR+S_IRUSR+S_IRGRP+S_IROTH:
918);
callp close(fd);
fd = open(IFSFolder:O_WRONLY+O_TEXTDATA);
The file is created (like it should ?) on the IFS with following
attributes:


Now, I cannot open the file in Word (because of ?invalid content?). Also,
when opening in XML-SPY I see that accents (like é) are wrongly converted
(replaced by weird characters, wich causes the XML to be bad-formatted):

Help would be much, much, much appreciated ? .
Kr,
Dirk.

Dirk Mariën

Toyota Motor Europe
60 Avenue du Bourget,
1140 Brussels, Belgium

Ph: +32 (0) 2 745 2581

www.toyota-europe.com



This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this
message, you should not use, copy, disclose or take any action based on
this e-mail.
If you have received this e-mail in error, please inform the sender
promptly and delete this message and any attachments immediately.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.