From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13710 invoked by alias); 18 Jul 2012 18:25:33 -0000 Received: (qmail 13696 invoked by uid 22791); 18 Jul 2012 18:25:31 -0000 X-SWARE-Spam-Status: No, hits=3.3 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from srv-qc-excf1.rd-tech.com (HELO srv-qc-excf1.RD-TECH.COM) (66.46.186.236) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Jul 2012 18:25:08 +0000 Received: from srv-qc-mail2.RD-TECH.COM ([172.16.0.98]) by srv-qc-excf1.RD-TECH.COM with Microsoft SMTPSVC(6.0.3790.4675); Wed, 18 Jul 2012 14:25:07 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Jul 2012 18:25:00 -0000 Message-ID: From: "Chantale Duchesne" To: Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Asian Character X-SW-Source: 2012-07/txt/msg00023.txt.bz2 Hi, I am unsure wheter I should adress my question to you or not but I am at a = lost and would greatly appreciate any help I can get. We are using ecos on an instrument with a MSP430 microcontroller. The instr= ument currently runs in 5 different languages all using WMTF_ASCII TextFlag= s encoding which can be found in MWTypes.h file from the EcosLibrary. We wo= uld like the instrument to be available in Chinese (WMTF_DBCS_EUCCN text fl= ag). I have already mapped the Chinese translation to key strings, added th= e flag and menu needed and made all the changes that needed to be made in o= ur application code. The same thing has been done for Japanese as well (WMT= F_DBCS_JIS text flag).=20 When I download the code with the Asian character sets available to the ins= trument and change the language to Japanese/Chinese I get a set of white bl= ank rectangles instead of the desired Asian Characters. Is there some speci= al extra files/librairies that I need to add to my project to have the prop= er display ? Or maybe you could provide me with a code sample that properly= displays Asian character using Ecos on an embedded device ? Here is how I display the language with the wanted encoding. It works fine = for the ASCII encoded languages. typedef enum {ENGLISH =3D 0, FRENCH, GERMAN, SPANISH, ITALIAN, JAPANESE, PO= LISH, MAX_LANGUAGES } LanguageType; int TextFlags [MAX_LANGUAGES] =3D {MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_DBCS_JI= S, MWTF_ASCII}; GdText(screenDev, minx + startPosition,=20 Miny, titleString, length, TextFlags[language]); ________________________________________ Chantale Duchesne Concepteur logiciel | Software Designer Olympus NDT Canada | 505, boul. du Parc-Technologique | Qu=E9bec (Qu=E9bec)= G1P 4S9 | Canada (1) (418) 872-1155 www.olympus-ims.com Chantale Duchesne Concepteur logiciel | Software Designer Olympus NDT Canada | 505, boul. du Parc-Technologique | Qu=E9bec (Qu=E9bec)= G1P 4S9 | Canada (1) (418) 872-1155 www.olympus-ims.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss