PDA

View Full Version : HTMLBox and Accent Marks


Drew Fulton
04-04-2011, 04:03 PM
I am using a fairly altered version of Tommy's HTMLBox where I have added some photos and buttons. Ultimately though, if I remember correctly, the actual HTML box straight out of Tommy's plugin.

My question is this, I am working on a spanish site and need accent marks to display properly. I was using the &.acute (replace . with vowel) and it shows up as is, not converted to the correct character.

I thought this might be because my HTML file was just a couple of paragraph tags so I put a couple header tags with Meta content type and a doctype tag and it didn't work. The only fix I could find was to actually put the correct letter directly in the file... Works in Firefox and Safari so far but wanted to know if there was a better way to go about this.

Any ideas?

Drew

allSaints
04-04-2011, 04:43 PM
Drew,

you're forgetting that the TextField class used to display your text is not a browser. It's just that - a simple text field - which understands a handful of html tags. And regarding html entities, it can only decode five of maybe a hundred.

But, it also supports explicit character codes, such as é (e acute - ASCII) and é (e acute - Unicode).

Tommy

Drew Fulton
04-04-2011, 04:47 PM
Tommy,

You are a savior as always. I remembered it only understood a couple of the html tags but couldn't remember much more. The plugin I put together is a couple years old and couldn't remember the details. Thanks so much. Unicode it is.

Drew

Drew Fulton
04-04-2011, 08:59 PM
Alright, Now I am having problems with accent marks displaying using the Tooltips plugin. I have tried Unicode, HTML (&.oacute) and just typing the character... Any ideas?

Drew