Character encoding problems with ConfigLoader

View: New views
2 Messages — Rating Filter:   Alert me  

Character encoding problems with ConfigLoader

by Marcelo de Moraes Serpa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello folks,

I'm using ConfigLoader to load some data from a XML file, here's how it looks like:

<?xml version="1.0" encoding="UTF-8"?>
<config>
   
    <banner type="class">'dtportal.flashbanner.vos.BannerVO', "Nosso Portal", "Conheça nossos produtos web", "images/banners/banner2.jpg",     "images/banners/thumbs/banner2.jpg"</banner>

</config>

Take a look at the "Conheça nossos produtos web" field. It uses the non-ASCII "ç" char. I've got a textfield in my application that gets set to this text. The issue is that this textfield doesn't show the "ç" char and the char after that ( "a" ). Take a look at the small screenshot attached.

The textfield is set with the Arial font, I'm not embedding any fonts.

Thanks in advance,

Marcelo.


_______________________________________________
Pixlib mailing list
Pixlib@...
http://osflash.org/mailman/listinfo/pixlib_osflash.org

imagem.JPG (4K) Download Attachment

Re: Character encoding problems with ConfigLoader

by Stef X :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Marcelo,

I think your problem is that your xml file is not saved under utf-8 format...if you're working with windows, simply open your xml file with notepad and then save your file as and tell it to save in utf-8.

Hope this help.

St3fX

2008/1/17, Marcelo de Moraes Serpa <celoserpa@...>:
Hello folks,

I'm using ConfigLoader to load some data from a XML file, here's how it looks like:

<?xml version="1.0" encoding="UTF-8"?>
<config>
   
    <banner type="class">' dtportal.flashbanner.vos.BannerVO', "Nosso Portal", "Conheça nossos produtos web", "images/banners/banner2.jpg",     "images/banners/thumbs/banner2.jpg"</banner>

</config>

Take a look at the "Conheça nossos produtos web" field. It uses the non-ASCII "ç" char. I've got a textfield in my application that gets set to this text. The issue is that this textfield doesn't show the "ç" char and the char after that ( "a" ). Take a look at the small screenshot attached.

The textfield is set with the Arial font, I'm not embedding any fonts.

Thanks in advance,

Marcelo.

_______________________________________________
Pixlib mailing list
Pixlib@...
http://osflash.org/mailman/listinfo/pixlib_osflash.org




_______________________________________________
Pixlib mailing list
Pixlib@...
http://osflash.org/mailman/listinfo/pixlib_osflash.org