I've been testing my new toy with every large and small text I can put my
hands on. The fact is, I have had surprise after surprise. I've just found
that when I read a text that contains "À" (that's an A with a grave accent
(`A) -- or  a backward acute accent for those who are not familiar with
diacritics).

Well, I can't display it if I load it into a TextArea.text. Nothing shows.
I mean, NOTHING. That is, I have a blank screen. If I bring it to lowercase
(à or `a) it will show up (in lowercase) with the rest of the text.

So, "`A" (coded as  "\xC3\x80") will prevent the displaying of any string.
Nevertheless, if I just try to display "Some text plus  À and some text
more" it will work.

Now, if I take the original text and do:

*  RawText = RegExp.Replace(RawText, "À", "à")*

yep! it does work.
But if I translate it back with

*  RawText = RegExp.Replace(RawText, "à", "À")*

It does not work anymore.

But if I do

*RawText = RawText & "À"*

And RawText did not contain "À"  before, then it will be displayed.

Amazing.

Any ideas about why this happens?

Regards

- fernando



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to