List Info

Thread: AW: Encoding Problem with "German Umlauts"




AW: Encoding Problem with "German Umlauts"
user name
2006-10-09 11:06:13

Hi Joerg,

Apologies, I see I omitted source encoding information from resource
file writing, so I will fix this in the next release (hopefully this week).

Thanks,

Julian

Joerg Toellner wrote:
> Hi Thomas, Hi Julian, Hi Group,
>
> a little catchup on my umlaut problem.
>
> As i reported before, in the "normal" Controls the german umlauts work
> fine after regenerating with settings ISO-8859-1. Only in the
> resources.cpp/.h, where my Menubar is located and code is generated
> for from DB, it wont work, even with regenerating it and also after
> deleting the .cpp/.h files completely and let them create them from DB
> from scratch.
>
> After a little research i found out, that the umlauts appear fine in
> DB-Editor and in MSVC-Editor. When i open it with a hex-editor i can
> see that the Ü is represented by 2 bytes (C3 9C).
>
> The literal "Über" appears as "Ü&ber" (Hex: 22 C3 9C 26 62 65 72 22)
>
> If i open the file in a normal Texteditor (e.g. Notepad) i get the
> crappy characters too as exactly i get them in my wxApplication in the
> menubar.
>
> I now changed the a.m. crappy characters to Ü in my texteditor. Now i
> get funny characters in db- and msvc-editor, but it works in my
> wxApplications menubar. So i have a solution for now, but that is not
> satisfying for the future. This time i only have two places in the
> menubar (resources.cpp) where i have to change it manually via a
> texteditor everytime i save my project and have made changes in the
> Menubar/Resources.cpp Section, but what, if i have another project
> with a lot of such things and/or forget it to change before releasing
> a new version?
>
> So i kindly ask, if there is another hint what i can do to solve this
> problem permanently. Can this (duck and cover ) maybe considered a
> DB bug in the resources creation code? (Sorry Julian, no offense here!
> - DB is GREAT!!!)
>
> Any more help appreciated. TIA!
> Joerg
>;
> ----------------------------------------------------------
> *Von anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com
> [mailto: anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com] *Im Auftrag von *Thomas Zehbe
>; *Gesendet Donnerstag, 5. Oktober 2006 18:27
>; *An anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com
> *Betreff Re: AW: [anthemion-devtools] Encoding Problem with "German
> Umlauts"
> >
> > After regenerating and recompiling i get now my german umlauts in all
> > button labels, captions and so on. Set project and source encoding to
> > ISO-8859-1. Thank you so much.
>; Fine that it worked.
>
> >
> > Only in the menubar (located in resources.cpp/.h) there is a big
> letter "Ü"
> > that wont appear correctly. Even after regenerate the .h and .cpp
> file. It
> > is between "////begin wscResources resource functions" and "////end
> > wscResources resource functions", so it should be regenerated i think.
> As I never with resources (I don't even now to generate this file
> despite the
> fact that there's an app_resources.h/.cpp default named in the
> settings) I
> only have two (or three) hints.
> First I would take a hexeditor to check how the chars are really encoded.
> Second, if the chars still in utf-8, and as I assume that all the
> content is
> generated by DB, I would rename the file and generate a "new" one.
>
> I'm not quite sure, but I think that there might be a 2 byte tag at the
> beginning of the file naming it as utf-encoded. In this case a iso
> char would
>; be messed if the compiler interprets this tag.
>
> But it's a bit of digging in the dark, as P. Gabriel states ...
>
> Regards,
> Thomas
>

--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks

__._,_.___
.

__,_._,___
AW: AW: Encoding Problem with "German Umlauts"
user name
2006-10-09 14:30:28

Hi Julian, Hi Thomas,
 
glad to hear that i have not wasted your and Thomas' time with a silly "user too dumb" error and maybe helped a little, little, little bit to improve DB! )
 
And no need for apologies from you. Take your time to fix it. Thank you for that.
 
And finally a very, very big thank to Thomas for all his time he used and help and hints.
 
CU
Joerg


Von: anthemion-devtoolsyahoogroups.com [mailto:anthemion-devtoolsyahoogroups.com] Im Auftrag von Julian Smart
Gesendet: Montag, 9. Oktober 2006 13:06
An: anthemion-devtoolsyahoogroups.com
Betreff: Re: AW: [anthemion-devtools] Encoding Problem with "German Umlauts" 
 
Hi Joerg,

Apologies, I see I omitted source encoding information from resource
file writing, so I will fix this in the next release (hopefully this week).

Thanks,

Julian

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )