At 12:00am -0800 00-11-11, Palm Developer Forum digest wrote:
>Subject: Can't do non-ASCII characters in Rez files on Windows?!
>From: "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]>
>Date: Fri, 10 Nov 2000 10:23:16 -0800
>X-Message-Number: 32
>
>[This is in the general direction of Ken Krugler, I think.]
>
>Please tell me I'm just missing something here.  I'm translating my app's
>resources into a European language.  All translatable resources (except
>forms) are in Rez .r files and I'm using CodeWarrior on Windows.
>
>Here's the problem: Rez (or the PalmRez post linker) seems to assume that
>Rez files use the Macintosh character set, which is very different from the
>Windows character set above 0x80.

Rez itself does have some knowledge of character sets, but only on 
the order of multi-byte vs. single-byte. In the MPW version of Rez 
(not sure about CodeWarrior) you can use the -script parameter to 
tell Rez that the text it's processing is Shift-JIS (Japanese), Big-5 
(Traditional Chinese) Roman (Latin), etc.

But that's obviously not the source of your problem, since the 
default value is Roman, which makes Rez treat all text as being 
single-byte; no other transliteration occurs at this stage.

>For English text this is no problem, but
>for accented characters above 0x80, it's a huge problem.  CW tries to
>transliterate such characters from the Mac encoding to the Palm/Win
>encoding, but of course when editing the .r files they were entered in
>Windows encoding in the first place.  The result in the Palm app is garbage.
>
>So I tried changing the 'Transliteration' option in the PalmRez Post Linker
>settings panel.  Both the 'Palm OS 3.0.x and earlier' and the 'Palm OS 3.1
>and later' settings result in this undesirable conversion.

Correct.

>The 'None'
>options looks promising, but it just turns every character in every resource
>into a zero byte.  THAT can't be right.

That sounds like a bug in PalmRez. Let's see...yup, it's a bug in 
both the Mac & Windows versions. I'll pass the information along to 
the tools group at Palm, and see when they can get out a fixed 
version.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to