|
Thanks, Joe. Should be easy enough to test, so I'll give it a shot. I just hope when I convert it to UCS-2 and back it doesn't mess something up that way, or I don't lose my sI and sO characters. :) Brad On Sat, 4 Nov 2006 08:58:51 -0600 "Joe Pluta" <joepluta@xxxxxxxxxxxxxxxxx> wrote:
I'm in no way an expert on this stuff, Brad, so take it with a grain of salt, but in general UCS-2 values require two bytes, and in those two bytes DBCS data gets converted to code points that don't clash with standard single-byte data. For the most part, standard ASCII is mapped to 00xx, where xx is the original ASCII hex code. DBCS data, on the other hand, gets converted to values > 256. Thus you can't have collisions. Note that UCS-2 is ALWAYS 16 bits per character. Meanwhile, UTF-8 and UTF-16, the other popular Unicode format, can contain characters of up to four bytes which allow for over a million characters. UTF is way confusing for me, since it also allows for special "combining characters" (a way of specifying, for example, an umlaut along with a U). JoeFrom: Brad Stone In a nutshell, it sounds like this may convert all characters, either SCBS or DBCS to unique values sothatthere is no way a DBCS value can contain a byte that is equal to a SBCS value and this problem would beeliminated? -- This is the RPG programming on the AS400 / 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.
Bradley V. Stone BVS.Tools www.bvstools.com
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.