# How to display " in dynamic text box

**URL:** <https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047>\
**Category:** Uncategorized\
**Created:** [June 22, 2008, 5:11pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047 "2008-06-22T17:11:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![arundracula](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Post date:** [June 22, 2008, 5:11pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/1 "2008-06-22T17:11:25Z")

</div>

I want to display some random quotes in my website.Like this

“Someone said that something is something” - Someone.

So I need to display the character " .(quotation)

How to display it in dynamic text field?

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [June 22, 2008, 8:27pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/2 "2008-06-22T20:27:02Z")

</div>

You would escape the character using \

```auto
txt.text = "\"Someone said that something is something\" - Someone."

```

---

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [June 22, 2008, 9:37pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/3 "2008-06-22T21:37:49Z")

</div>

i have a problem similar to this.

I have this .txt file being loaded into a .htmlText  
info\_txt=Blue #2092 G 100% Cotton

the % is not visible. Conversely i can use quotations.

---

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [June 23, 2008, 12:27am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/4 "2008-06-23T00:27:13Z")

</div>

argh this is killing me

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 23, 2008, 1:05am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/5 "2008-06-23T01:05:51Z")

</div>

Check out the unescape function

---

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [June 23, 2008, 1:41am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/6 "2008-06-23T01:41:11Z")

</div>

still no dice.

the 100% Cotten is showing up as 100Cotton. no spaces.

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 23, 2008, 1:55am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/7 "2008-06-23T01:55:41Z")

</div>

Might be easier to post the code you’re using for your textfield

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [June 23, 2008, 1:56am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/8 "2008-06-23T01:56:29Z")

</div>

It’s because the % symbol is used to delimit URL encoded strings. You must use the URL encoded version of the percent symbol in your text file and then use the unescape function in Flash like glos said.

Your text would look like:

> Blue #2092 G 100%25 Cotton

And AS code:

```auto
info_txt.htmlText = unescape(whateverIsLoadedFromText);

```

Note that %25 is the URL encoded version of the % symbol. You can find a full list with a simple google search.

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 23, 2008, 2:01am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/9 "2008-06-23T02:01:20Z")

</div>

Yeah, I thought unescape would do the trick!

The list of URL Encoded values can be found here  
[http://kb.adobe.com/selfservice/viewContent.do?externalId=tn\_14143&sliceId=2](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=2)

---

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [June 23, 2008, 2:11am UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/10 "2008-06-23T02:11:51Z")

</div>

fabulous, it works.  
Thanks

---

<div class="post-metadata">

**Author:** ![arundracula](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Post date:** [June 23, 2008, 4:44pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/11 "2008-06-23T16:44:39Z")

</div>

yes it works. thank you.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [June 23, 2008, 7:28pm UTC](https://forum.kirupa.com/t/how-to-display-in-dynamic-text-box/264047/12 "2008-06-23T19:28:43Z")

</div>

No problemo 🙂
