Re: Again: textfield charset problems :(
Anews <[email protected]> Tue, 4 Nov 2003 10:47:11 +0100
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <20031104094712.ENKS8542.kudu@there> |
Hi!
I had a similar problem, though I used 0.2a (not CVS version). I didn't solve
it (in the end I used Flash to make the animation), but I did learn a few
things along the way. Maybe using CVS version can make a difference - if you
succeed, PLEASE let us know. There are many questions around the Net about
this issue but no answers (at least none that I could find). If anyone else
succeeded, the same applies...
> I have problems with some central-european characters in TextField.
>
> _root.createTextField('textField',++depth,20,20,450,200);
> with(txtFld){ border = true; html = true; wordWrap=true;}
>
> When i try to display some special characters in textfield with html-mode
> (like õúûéáöüóóí), i see only boxes.
> With the "normal" textfield the result is better: the letters is there but
> the accentuated letter's accents is waves.
> The HTML-mode is my target.
The fonts that are used in dynamic fields should be either embedded or
browser-defined (they should be available on user's system). Seeing boxes
probably means that the fonts used are not central-european.
> At the Textfiled properties,there is an option called embed fonts
> (TextField .embedFonts = True/False) but i dont know how its working
> exactly. Maybe if i can embed some central-european fonts my problem is
> solved...or not? Any help around this?
TextField.embedFonts tells the Flash player/plugin that it should
use the embedded fonts - so you should set this to true. But you still have
to embed font somehow or the text will not appear - player tries to use
embedded font and does not find it so it displays nothing. I think you can
embed fonts by using TextField->setFont(), but I'm not sure - it did not work
in 0.2a, it might in CVS.
> Can i set codepages in ming or in TextField object? Is there any unicode
> support?
No, you can't set codepages (at least I don't know how). Unicode support - in
CVS sources "utf8" and "wideString" is used in many places, but don't ask me
how to use it - I couldn't get CVS version to play with my PHP server.
Hope it helps at least a bit, if you succeed, please let us know (how).
Anze