2010/1/4 Przemysław Czerpak <[email protected]>: > Lorenzo, 0x80 is not correct position for euro sign in any ISO CPs. > None of ISO CPs contains characters in range 0x80 - 0x9F. These are > control codes in many hardware devices so such range is excluded. ... > important thing is using correct values for different encoding so other > programs can correctly decode the data.
Many thanks for your time. I've removed all my changes and I'm working with a clean 2.0.0 but what I've found is that pseudo standards are often supported better than officials ones. This is what comes from MySql's http://dev.mysql.com/doc/refman/5.0/en/charset-we-sets.html >>>> latin1 is the default character set. MySQL's latin1 is the same as the Windows cp1252 character set. This means it is the same as the official ISO 8859-1 or IANA (Internet Assigned Numbers Authority) latin1, except that IANA latin1 treats the code points between 0x80 and 0x9f as "undefined," whereas cp1252, and therefore MySQL's latin1, assign characters for those positions. For example, 0x80 is the Euro sign. For the "undefined" entries in cp1252, MySQL translates 0x81 to Unicode 0x0081, 0x8d to 0x008d, 0x8f to 0x008f, 0x90 to 0x0090, and 0x9d to 0x009d. <<<<< the same is for openoffice, pdfs, rtfs, HP PCL the only "consistent way" I found to get to get the euro sign is when it's at 0x80. The only problem I found so far is that postgresql refuses to import chr(141) when client is set to WIN1252 and memoedit uses chr(141) for soft crs so I found several of them in my dbfs. The other issue is that I need to share DBFs between gttrm/gtxwc/gtwvt and C53/FW16 apps and "ANSI" seems to be the only common charset I found so far. ITISB was perfect but now I need to support more european languages so I can't use it anymore. BTW I've tried to remove the hack: if ( outISO == 0x20ac ) { buf[0] = (BYTE) 0x80; n = 1; } but I can't type the Euro sign without it. The language support is becoming a big issue. What happen if a customer want to start to work with Poland or Hungary? best regards, Lorenzo _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
