# Problems with displaying certain characters in Dynamic text field

**URL:** <https://forum.kirupa.com/t/problems-with-displaying-certain-characters-in-dynamic-text-field/208707>\
**Category:** flash\
**Created:** [December 1, 2006, 2:31pm UTC](https://forum.kirupa.com/t/problems-with-displaying-certain-characters-in-dynamic-text-field/208707 "2006-12-01T14:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crapitoutjim](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@crapitoutjim](https://forum.kirupa.com/u/crapitoutjim)\
**Post date:** [December 1, 2006, 2:31pm UTC](https://forum.kirupa.com/t/problems-with-displaying-certain-characters-in-dynamic-text-field/208707/1 "2006-12-01T14:31:11Z")

</div>

Hi There,

I am having problems displaying ‘%’ and ‘&’ in my text fields. I am using:

[COLOR=“RoyalBlue”]var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success:Boolean) {  
if (success) {  
main\_mc.body\_txt.htmlText = myLV.bodyCopy;  
} else {  
main\_mc.body\_txt.text = “There has been an error loading the requested information. Please contact the webmaster and report the fault”;  
}  
}  
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();  
cssStyles.load(“styles/styles.css”);  
cssStyles.onLoad = function (success:Boolean) {  
if (success) {  
main\_mc.body\_txt.styleSheet = cssStyles;  
myLV.load(“copy/product01b.txt”);  
} else {  
main\_mc.body\_txt.text = “There has been an error loading the requested information. Please contact the webmaster and report the fault”;  
}  
}[/COLOR]

to load the text file and the style sheet.

I have two external files, a text file and a .css file

this is the css style:

[COLOR=“Red”]p {  
font-family: “Arial Narrow”;  
font-size: 18px;  
}[/COLOR]

And this is the text file:

[COLOR=“Red”]&bodyCopy=\<textformat leading=“2”\>\<p\>Save up to 30% on internet prices.\</p\>\</textformat\>[/COLOR]

I have also embedded the symbol into my text field and have also embedded the font itself into my flash file. Has anyone any idea how I can display these symbols.

Cheers
