× 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.



CSSID 819 is ISO 8859-1 ASCII and node/javascript engines runs UTF-16
internally (seldom UCS-2) and store files as UTF-8 as default so the
correct CSSID would be 1208 but since CSSID is IBM i only the files becomes
the directory's CCSID.

Anyway - here are a list of encoding supported by fs property "encoding"
but be aware that it dosn't use the ifs files CCSID like native does.


- ascii
- base64
- binary
- hex
- ucs2/ucs-2/utf16le/utf-16le
- utf8/utf-8
- latin1 (ISO8859-1, *only in node 6.4.0+*)



On Tue, Mar 13, 2018 at 6:54 PM, Richard Schoen <
Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

819 should be OK. What format were you going for ?

Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

-----Original Message-----

----------------------------------------------------------------------

message: 1
date: Mon, 12 Mar 2018 19:07:22 -0500
from: Bradley Stone <bvstone@xxxxxxxxx>
subject: [WEB400] Writing to IFS with Node.. Code page...

Just wondering if there is a way to specify the code page for a stream
file when using Node and fs. Seems to always use 819.

TIA.

Bradley V. Stone
www.bvstools.com
GreenTools for PayPal <https://www.bvstools.com/g4pp.html>: Easily send
PayPal invoices from your IBM i applications using RPG ILE! Process
refunds, get account balances and more!


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.