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



I'm really confused about how/if codepages/locales/CCSIDs affect me.

I'm writing a license key checking routine on the AS/400. The output of
this function is heavily dependent on the actual values of the bytes I
put into it. When I do something like retrieve the system serial number,
are the values of the bytes sitting in the serial number variable at
all affected by the locale the AS/400 owner has chosen?

The AS/400 function needs to agree with a function on a PC that uses
an entirely different code base. If the license key generation consists
of hashing a buffer, do you suppose it will be enough to add one extra
step to the AS/400 function (converting the buffer to ASCII prior to
hashing)? If so, will it always be safe to use iconv to translate from
EBCDIC to ASCII? I know I want to translate *to* ASCII, but I'm unclear
what format to translate *from* if my program is running on an AS/400
with an unusual (to me) locale.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.