special characters and Flash
Hello,
I am trying to display special characters in Flash, from an XML file.
I encoded the XML file with Unicode like this:
<?xml version=”1.0” encoding=”UTF-8”?>
I have set the System.useCodepage to true
System.useCodepage = true;
I embedded the font.
What should I do in order to display special characters in flash?
Thank you in advance
TYPING special character in xml
ok,if I opened txt file ,how can I type special character they are not on keyboard keys?!where can I get them from?!
I know about encoding ,I already done that.I'm asking about TYPING characters inside xml file.not reading neither saving them.
1 Attachment(s)
French Œ not coming through
Hi,
I have followed Kostas Zotos instructions which are brilliant, thank you very much.
My basic example worked and that's wonderful thanks but when I then try and implement this in a site we have taken over to help a client, the French character Œ just does not want to come through at all.
Things I have done:
- Made sure XML is saved as UTF-8
- XML uses CDATA
- Have embedded fonts
- Have embedded Œ specifically
- Have used another font altogether
- Have placed the character Œ in another text field outside of the MC it's meant to be in and set that as static text which works.
- Have recreated the text field thinking it may have corrupted somehow.
- Have put another text field next to it outside of the mask, changed the name and added the characters to the text field.
Is there anything else I could try that I might be missing?
[EDIT]
- I have now also plugged Kostas Zotos' example in directly into the site I am working on and his sample works which leads me to believe there might be something wrong with the XML. Could a malformed XML be the cause of something like this? All other special characters are coming through expect for this sucker.
- I have also created an entirely new XML file, saved it as UTF-8 and now the French side of the site wont load.
- I have now also checked and ensured that the XML is not malformed using Firefox and it all looks good.
In the attached example, the blue circle between the --- ---- is where my characters should be appearing which is happening in the text field to the left.