How to display Spanish characters? Re:

Andres Londoño haoomaru at hotmail.com
Fri Oct 26 08:24:31 PDT 2007


Hi:

Thats exactly my problem:

Ole Nielsby> If ñ, á, é is shown as ñ, á, é it's because the db sends 
utf-8
Ole Nielsby> and the app interprets it as latin-1. There is also the 
possibility that
Ole Nielsby> the db was created using some obscure dos codepage...

But I dont have enough knowledge about using language settings in Linux.

I had to recompile wxX11-2.8.4 disabling Unicode, because my app didn't 
compile. And It was hard to adding wxT() functions for each sentence.  :S

Any advice?



De: "Ole Nielsby" <ole.niel... at tekare-you-spamminglogisk.dk>
Fecha: Thu, 13 Sep 2007 23:00:17 +0200
Local: Jue 13 sep 2007 16:00
Asunto: Re: How to display Spanish characters?


Andres Londoño <haoom... at hotmail.com> wrote:

>Hi:

>I was reading the "Writing non-English applications on Wx" manual but I
>dont see my answer there.

>I am extracting data from a database and displaying wxString on text
>Controls, but my text shows stranger characters.

>How to display the ñ, á, é , ... chars?

Have you got the the encodings right in the database communication?
Does the database driver have an option where you can set the encoding?
Does the database server?

If ñ, á, é is shown as ñ, á, é it's because the db sends utf-8
and the app interprets it as latin-1. There is also the possibility that
the db was created using some obscure dos codepage...

What happens if your app writes "Olé" to the db and
reads it back and displays it?

What happens if you use the wide char (unicode) build of wxWidgets?





Andres

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.latam.msn.com/





More information about the wx-users mailing list