• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

Scandinavian fonts (æ,ø,å) to listbox with text from xml

I cant embed font from libary in to listbox, The listbox gets text from a xml doc, I have done my best but i can't find out of this.
You can download fla and xml file here http://www.zirkel.no//font/embed_font.zip
(I have looking and searching in here, but cant find a soloution)

thanks in advance
0
zirkel
Asked:
zirkel
  • 2
  • 2
2 Solutions
 
Aneesh ChopraCommented:
Hi,

Problem is only in XML,

Here is the fix,,

just replace your XML content with the following:
-------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
      <video url="http://ggggg/video01.flv" desc=" Norwegian charaters &#198;&#216;&#197; &#230;&#248;&#229;"/>
      <video url="http://ggggg/video01.flv" desc=" example"/>
      <video url="http://ggggg/video01.flv" desc=" example"/>
      <video url="http://ggggg/video01.flv" desc=" example"/>
      <video url="http://ggggg/video01.flv" desc=" example"/>
      <video url="http://ggggg/video01.flv" desc=" example3"/>
      <video url="http://ggggg/video01" desc=" example5"/>
</videos>
-----------------


Rgds
Aneesh
0
 
wings_gauravCommented:
Hi,

another way would be to change the encoding of the xml to utf-8.

edit the xml -
<?xml version="1.0" encoding="UTF-8"?>

save the file as UTF-8. You can use notepad if you have winXP - if you do save as you will see a dropdown with encoding option.

i have uploaded teh sample file at  http://www.4shared.com/file/1520226/7f43e599/videos.html

-wings
0
 
zirkelAuthor Commented:
Thanks for the answeres, Both methods work fine, but i think The best one is the last one. But I wonder if it's not posible to embed a font to use in this case, if I want a spesial font?

-zirkel
0
 
wings_gauravCommented:
Hi,

If you are asking wether the font of list component can be changed then answer is yes.

setStyle function can do this

embedFonts, fontFamily, fontSize, fontStyle, fontWeight    etc can be used - you can find more info at
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002493.html

-wings
0
 
zirkelAuthor Commented:
Yes, I have seen this, and i not realy need more solution in this prosjekt, but who knows later, if a customer want a spesial font in a listbox.
If this font is not normaly instaled font for windovs or mac, then you must embed font's and i tryed to embed a font, with add font in library make a name on this font, linked to actionscript and hooked for play in first frame. then write a short code in as, an search for difrent way to write this code, but i can't make this working. So if you or anyone know how i can find out this or help me with this, i wil be very grateful :)

But like I said, this wil work for this prosjekt, i should use verdana.

thanks a lot so far.

-zirkel
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now