|
From: George R. <gr...@us...> - 2006-12-20 20:41:27
|
If you're using the console, then using GetConsoleOutputCP() or GetOEMCP() = would be okay depending on what you're doing. When using Windows, it's usually better to prefix with "windows-" instead=20 of "cp". The "cp" prefix is an ambiguous prefix. Depending on the=20 source, it can either mean ibm-* or windows-*. In this case, you want=20 windows-720. The real fix for this problem is to add the conversion table to your copy=20 of ICU. You can download ICU from subversion or CVS, and add the table to = your copy of ICU.=20 You can use this table http://dev.icu-project.org/cgi-bin/viewcvs.cgi/charset/data/ucm/windows-720= -2000.ucm?view=3Dco ... and you can use these instructions for adding the table. http://icu.sourceforge.net/userguide/icudata.html#custom=5Fdata=5Flibrary George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/ Andreas Martens1 <ama...@uk...>=20 Sent by: icu...@li... 12/20/2006 09:25 AM Please respond to ICU support mailing list <icu...@li...> To icu...@li... cc Subject [icu-support] Windows codepage 720 I have been trying to trace a problem in our BiDi support and have=20 discovered that we're hitting trouble trying to get a codepage for=20 windows-720... We ask windows for it's codepage using GetConsoleOutputCP() = and then ask the ICU to find us a converter for it (we try to prepend "cp" = to it first). The ICU tells us that no such codepage exists.=20 1. Should windows XP be telling us something else (like 1256)?=20 2. Should we not be using GetConsoleOutputCP()?=20 if we do a chcp 1256 beforehand it works, but we'd prefer not to have to=20 tell our customers that their environment is wrong :-(=20 cheers,=20 Andreas=20 -- WebSphere Message Brokers Development MP211, IBM Hursley Park, Winchester, SO21 2JN Telephone Int. 24-6833 Ext. +44 (0)1962-816833 Lotus Notes ID : Andreas Martens1/UK/IBM Internet : ama...@uk... |