Sie sind nicht angemeldet.

1

Freitag, 4. März 2011, 17:33

© character in HTML5 textfield (or other special characters)

Hi there:

(I had this question as part of my response to this post about the textfield plugin & how to modify it for html5 devices)

Using the Flash-based textfield, I can just type a © symbol (for instance) into the XML & Flash displays it just fine. Doing this for the HTML5 textfield results in garbage being displayed. Since I can't run things like "©" through the krpano XML, what's suggested as the workaround for this?

Thanks in advance!

2

Samstag, 5. März 2011, 20:53

Probable fix

Hey there:

So it appears that making sure the XML document is UTF8 encoded is the probable cause for the garbling of special characters in the XML/textfield output. Sheesh!

I also added an XML doc declaration at the top of xml, but it may not be 100% necessary. At least now it validates ;)

Boubou

Schüler

Beiträge: 67

Wohnort: Paris

Beruf: Photographer

  • Nachricht senden

3

Sonntag, 6. März 2011, 02:45

Hi,
Try \ beside the character or behind and if it's not working, try / at the same way ;-)

4

Montag, 7. März 2011, 09:19

Hey Boubou:

Thanks! :)

Well, I tried that method of escaping (but that's not really the right way to do it in XML anyway IIRC), with no luck -- I really think the issue was with the document encoding... It all works now!

Ähnliche Themen